Class: Relaton::Ietf::DataFetcher

Inherits:
Core::DataFetcher show all
Defined in:
lib/relaton/ietf/data_fetcher.rb

Instance Method Summary collapse

Methods inherited from Core::DataFetcher

fetch, #gh_issue, #gh_issue_channel, #initialize, #log_error, #output_file, #report_errors, #serialize, #to_bibxml, #to_xml, #to_yaml

Constructor Details

This class inherits a constructor from Relaton::Core::DataFetcher

Instance Method Details

#fetch(source) ⇒ Object

Fetch documents



16
17
18
19
20
21
22
23
24
# File 'lib/relaton/ietf/data_fetcher.rb', line 16

def fetch(source)
  @source = source
  case source
  when "ietf-rfcsubseries" then fetch_ieft_rfcsubseries
  when "ietf-internet-drafts" then fetch_ieft_internet_drafts
  when "ietf-rfc-entries" then fetch_ieft_rfcs
  end
  index.save
end