Class: RelatonIec::Hit
- Inherits:
-
RelatonBib::Hit
- Object
- RelatonBib::Hit
- RelatonIec::Hit
- Defined in:
- lib/relaton_iec/hit.rb
Overview
Hit.
Instance Attribute Summary collapse
-
#fetch ⇒ RelatonIec::IecBibliographicItem
Parse page.
Instance Method Summary collapse
Instance Attribute Details
#fetch ⇒ RelatonIec::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
#part ⇒ Object
14 15 16 |
# File 'lib/relaton_iec/hit.rb', line 14 def part @part ||= hit[:code].match(/(?<=-)[\w-]+/)&.to_s end |