Class: RelatonIec::Hit

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

Overview

Hit.

Instance Method Summary collapse

Instance Method Details

#fetchRelatonIec::IecBibliographicItem

Parse page.



8
9
10
# File 'lib/relaton_iec/hit.rb', line 8

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

#partObject



12
13
14
# File 'lib/relaton_iec/hit.rb', line 12

def part
  @part ||= hit[:code].match(/(?<=-)[\w-]+/)&.to_s
end