Class: Relaton::Plateau::Hit

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

Instance Method Summary collapse

Instance Method Details

#itemObject



4
5
6
7
8
9
10
# File 'lib/relaton/plateau/hit.rb', line 4

def item
  @item ||= begin
    url = "#{HitCollection::ENDPOINT}#{hit[:file]}"
    resp = Net::HTTP.get_response(URI(url))
    Item.from_yaml(resp.body)
  end
end