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.



7
8
9
10
11
12
# File 'lib/relaton/calconnect/hit.rb', line 7

def item
  @item ||= begin
    url = "#{HitCollection::GHURL}#{@hit[:file]}"
    Item.from_yaml Mechanize.new.get(url).body
  end
end