Class: Relaton::Calconnect::Hit
- Inherits:
-
Relaton::Core::Hit
- Object
- Relaton::Core::Hit
- Relaton::Calconnect::Hit
- Defined in:
- lib/relaton/calconnect/hit.rb
Instance Method Summary collapse
-
#item ⇒ Relaton::Calconnect::ItemData
Parse page.
Instance Method Details
#item ⇒ Relaton::Calconnect::ItemData
Parse page.
5 6 7 8 9 10 11 12 |
# File 'lib/relaton/calconnect/hit.rb', line 5 def item # @fetch ||= Scraper.parse_page @hit @item ||= begin url = "#{HitCollection::GHURL}#{@hit[:file]}" resp = Faraday.get url Item.from_yaml resp.body end end |