Class: RelatonOgc::Hit

Inherits:
RelatonBib::Hit
  • Object
show all
Defined in:
lib/relaton_ogc/hit.rb

Instance Method Summary collapse

Constructor Details

#initialize(bibitem, hitcoll = nil) ⇒ Hit

<Description>

Parameters:



9
10
11
12
# File 'lib/relaton_ogc/hit.rb', line 9

def initialize(bibitem, hitcoll = nil)
  super({ id: bibitem.docidentifier[0].id}, hitcoll)
  @fetch = bibitem
end

Instance Method Details

#fetchRelatonNist::NistBliographicItem

Parse page.

Returns:

  • (RelatonNist::NistBliographicItem)


16
17
18
# File 'lib/relaton_ogc/hit.rb', line 16

def fetch
  @fetch # ||= Scrapper.parse_page @hit
end