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

add Default args to initialize methods

parent 587d7284
......@@ -9,7 +9,7 @@ module Dspace
:parent_object, :retrieve_link, :check_sum,
:sequence_id, :policies
def initialize args
def initialize(args={})
@id = args['id'] || args['uuid']
@name = args['name']
@type = args['type']
......
......@@ -9,7 +9,7 @@ module Dspace
:parent_community_list, :items,
:number_items, :expand
def initialize args
def initialize(args={})
@id = args['id'] || args['uuid']
@name = args['name']
@handle = args['handle']
......
......@@ -8,7 +8,7 @@ module Dspace
:parent_collection_list, :parent_community_list, :bit_streams,
:expand, :metadata
def initialize args
def initialize(args={})
@id = args['id'] || args['uuid']
@name = args['name']
@handle = args['handle']
......
......@@ -2,7 +2,7 @@ module Dspace
class Metadata
attr_accessor :key, :value, :language
def initialize args
def initialize(args={})
@key = args['key']
@value = args['value']
@language = args['language'] || nil
......
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