Method: RelatonGb::GbBibliographicItem.from_hash

Defined in:
lib/relaton_gb/gb_bibliographic_item.rb

.from_hash(hash) ⇒ RelatonGb::GbBibliographicItem

Parameters:

  • hash (Hash)

Returns:



47
48
49
50
# File 'lib/relaton_gb/gb_bibliographic_item.rb', line 47

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