lib/relaton_iana/data_fetcher.rb in relaton-iana-1.13.1 vs lib/relaton_iana/data_fetcher.rb in relaton-iana-1.14.0
- old
+ new
@@ -90,11 +90,11 @@
end
#
# Save document to file
#
- # @param [RelatonW3c::W3cBibliographicItem, nil] bib bibliographic item
+ # @param [RelatonIana::IanaBibliographicItem, nil] bib bibliographic item
#
def save_doc(bib) # rubocop:disable Metrics/MethodLength
return unless bib
c = case @format
@@ -112,10 +112,10 @@
end
#
# Generate file name
#
- # @param [RelatonW3c::W3cBibliographicItem] bib bibliographic item
+ # @param [RelatonIana::IanaBibliographicItem] bib bibliographic item
#
# @return [String] file name
#
def file_name(bib)
name = bib.docnumber.downcase.gsub(/[\s,:\/]/, "_").squeeze("_")