class RelatonOgc::Hit

Public Class Methods

new(bibitem, hitcoll = nil) click to toggle source

<Description>

@param [RelatonOgc::OgcBibliographicItem] bibitem @param [RelatonOgc::HitCollection, nil] hitcoll

Calls superclass method
# File lib/relaton_ogc/hit.rb, line 9
def initialize(bibitem, hitcoll = nil)
  super({ id: bibitem.docidentifier[0].id}, hitcoll)
  @fetch = bibitem
end

Public Instance Methods

fetch() click to toggle source

Parse page. @return [RelatonNist::NistBliographicItem]

# File lib/relaton_ogc/hit.rb, line 16
def fetch
  @fetch # ||= Scrapper.parse_page @hit
end