Class: RelatonCalconnect::CcBibliographicItem

Inherits:
RelatonBib::BibliographicItem
  • Object
show all
Defined in:
lib/relaton_calconnect/cc_bibliographic_item.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_hash(hash) ⇒ RelatonIsoBib::CcBibliographicItem

Parameters:

  • hash (Hash)

Returns:

  • (RelatonIsoBib::CcBibliographicItem)


14
15
16
17
# File 'lib/relaton_calconnect/cc_bibliographic_item.rb', line 14

def self.from_hash(hash)
  item_hash = ::RelatonCalconnect::HashConverter.hash_to_bib(hash)
  new(**item_hash)
end

Instance Method Details

#ext_schemaString

Fetch flavor schema version

Returns:

  • (String)

    flavor schema version



8
9
10
# File 'lib/relaton_calconnect/cc_bibliographic_item.rb', line 8

def ext_schema
  @ext_schema ||= schema_versions["relaton-model-cc"]
end