Class: Libis::Services::Rosetta::CollectionInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/libis/services/rosetta/collection_info.rb

Defined Under Namespace

Classes: MetaData

Instance Method Summary collapse

Instance Method Details

#to_hashObject



35
36
37
38
39
40
# File 'lib/libis/services/rosetta/collection_info.rb', line 35

def to_hash
  result = self.attributes
  result[:md_dc] = result[:md_dc].attributes if result[:md_dc]
  result[:md_source] = result[:md_source].map { |md| md.attributes }
  result
end