lib/relaton_iana/processor.rb in relaton-iana-1.13.1 vs lib/relaton_iana/processor.rb in relaton-iana-1.14.0
- old
+ new
@@ -13,11 +13,11 @@
end
# @param code [String]
# @param date [String, NilClass] year
# @param opts [Hash]
- # @return [RelatonBib::BibliographicItem]
+ # @return [RelatonIana::IanaBibliographicItem]
def get(code, date, opts)
::RelatonIana::IanaBibliography.get(code, date, opts)
end
#
@@ -31,19 +31,19 @@
def fetch_data(_source, opts)
DataFetcher.fetch(**opts)
end
# @param xml [String]
- # @return [RelatonBib::BibliographicItem]
+ # @return [RelatonIana::IanaBibliographicItem]
def from_xml(xml)
- ::RelatonBib::XMLParser.from_xml xml
+ ::RelatonIana::XMLParser.from_xml xml
end
# @param hash [Hash]
- # @return [RelatonIana::BibliographicItem]
+ # @return [RelatonIana::IanaBibliographicItem]
def hash_to_bib(hash)
- item_hash = ::RelatonBib::HashConverter.hash_to_bib(hash)
- ::RelatonWBib::BibliographicItem.new(**item_hash)
+ item_hash = ::RelatonIana::HashConverter.hash_to_bib(hash)
+ ::RelatonIana::IanaBibliographicItem.new(**item_hash)
end
# Returns hash of XML grammar
# @return [String]
def grammar_hash