Class: RelatonIec::Hit

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

Overview

Hit.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fetchRelatonIec::IecBibliographicItem

Parse page.



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

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

Instance Method Details

#partObject



14
15
16
# File 'lib/relaton_iec/hit.rb', line 14

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