class RelatonItu::HashConverter

Private Class Methods

bib_item(item) click to toggle source

Ovverides superclass's method

@param item [Hash] @retirn [RelatonItu::ItuBibliographicItem]

# File lib/relaton_itu/hash_converter.rb, line 11
def bib_item(item)
  ItuBibliographicItem.new(**item)
end
editorialgroup_hash_to_bib(ret) click to toggle source
# File lib/relaton_itu/hash_converter.rb, line 15
def editorialgroup_hash_to_bib(ret)
  eg = ret[:editorialgroup]
  return unless eg

  ret[:editorialgroup] = EditorialGroup.new **eg
end
structuredidentifier_hash_to_bib(ret) click to toggle source

@param ret [Hash]

# File lib/relaton_itu/hash_converter.rb, line 23
def structuredidentifier_hash_to_bib(ret)
  return unless ret[:structuredidentifier]

  ret[:structuredidentifier] = StructuredIdentifier.new(
    **ret[:structuredidentifier]
  )
end