Class: Relaton::Calconnect::Hit

Inherits:
Relaton::Core::Hit
  • Object
show all
Defined in:
lib/relaton/calconnect/hit.rb

Instance Method Summary collapse

Instance Method Details

#itemRelaton::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