Module: RelatonIetf::IetfBibliography

Defined in:
lib/relaton_ietf/ietf_bibliography.rb

Overview

IETF bibliography module

Class Method Summary collapse

Class Method Details

.get(code, _year = nil, _opts = {}) ⇒ RelatonIetf::IetfBibliographicItem

Returns Relaton of reference.

Parameters:

  • code (String)

    the ISO standard Code to look up (e..g “ISO 9000”)

  • year (String)

    the year the standard was published (optional)

  • opts (Hash)

    options; restricted to :all_parts if all-parts reference is required

Returns:



19
20
21
# File 'lib/relaton_ietf/ietf_bibliography.rb', line 19

def get(code, _year = nil, _opts = {})
  search code
end

.search(text) ⇒ RelatonIetf::IetfBibliographicItem

Parameters:

  • code (String)

    the ISO standard Code to look up (e..g “ISO 9000”)

Returns:



11
12
13
# File 'lib/relaton_ietf/ietf_bibliography.rb', line 11

def search(text)
  Scrapper.scrape_page text
end