Sha256: ad46b0b1f2e8c42e8d1468aee232f4353d0b12a6688305f0c6d452d41e2f361d

Contents?: true

Size: 775 Bytes

Versions: 27

Compression:

Stored size: 775 Bytes

Contents

# frozen_string_literal:true

require "relaton_ietf/scrapper"

module RelatonIetf
  # IETF bibliography module
  module IetfBibliography
    class << self
      # @param code [String] the ISO standard Code to look up (e..g "ISO 9000")
      # @return [RelatonIetf::IetfBibliographicItem]
      def search(text)
        Scrapper.scrape_page text
      end

      # @param code [String] the ISO standard Code to look up (e..g "ISO 9000")
      # @param year [String] the year the standard was published (optional)
      # @param opts [Hash] options; restricted to :all_parts if all-parts reference is required
      # @return [RelatonIetf::IetfBibliographicItem] Relaton of reference
      def get(code, _year = nil, _opts = {})
        search code
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
relaton-ietf-0.11.1 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.11.0 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.10.0 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.9.0 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.8.0 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.7.3 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.7.2 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.7.1 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.7.0 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.10 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.9 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.8 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.7 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.6 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.5 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.4 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.3 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.2 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.1 lib/relaton_ietf/ietf_bibliography.rb
relaton-ietf-0.6.0 lib/relaton_ietf/ietf_bibliography.rb