Commit e0234054 authored by Bruno Nocera Zanette's avatar Bruno Nocera Zanette

adapt Models to DSpace-6.x REST format

parent 378edccc
......@@ -10,7 +10,7 @@ module Dspace
:sequence_id, :policies
def initialize args
@id = args['id']
@id = args['id'] || args['uuid']
@name = args['name']
@type = args['type']
@link = args['link']
......
......@@ -10,7 +10,7 @@ module Dspace
:number_items, :expand
def initialize args
@id = args['id']
@id = args['id'] || args['uuid']
@name = args['name']
@handle = args['handle']
@type = args['type']
......@@ -51,4 +51,4 @@ module Dspace
end
end
end
\ No newline at end of file
end
......@@ -8,7 +8,7 @@ module Dspace
:count_items, :sub_communities, :collections, :expand
def initialize(args={})
@id = args['id']
@id = args['id'] || args['uuid']
@name = args['name']
@handle = args['handle']
@type = args['type']
......
......@@ -9,7 +9,7 @@ module Dspace
:expand, :metadata
def initialize args
@id = args['id']
@id = args['id'] || args['uuid']
@name = args['name']
@handle = args['handle']
@type = args['type']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment