Class: Hungry::Location

Inherits:
Resource show all
Defined in:
lib/hungry/location.rb

Direct Known Subclasses

City, Country, Region

Instance Attribute Summary collapse

Attributes inherited from Resource

#attributes, #data_source

Method Summary

Methods inherited from Resource

all, belongs_to, #canonical_data_source, collection, each, find, first, get, has_many, #initialize, lazy_load, #reload

Constructor Details

This class inherits a constructor from Hungry::Resource

Instance Attribute Details

#countersObject

Location:



17
18
19
# File 'lib/hungry/location.rb', line 17

def counters
  @counters
end

#geolocationObject

Location:



17
18
19
# File 'lib/hungry/location.rb', line 17

def geolocation
  @geolocation
end

#idObject

Location:



17
18
19
# File 'lib/hungry/location.rb', line 17

def id
  @id
end

#nameObject

Location:



17
18
19
# File 'lib/hungry/location.rb', line 17

def name
  @name
end

#resourcesObject

Location:



17
18
19
# File 'lib/hungry/location.rb', line 17

def resources
  @resources
end

#typeObject

Location:



17
18
19
# File 'lib/hungry/location.rb', line 17

def type
  @type
end

#urlObject

Location:



17
18
19
# File 'lib/hungry/location.rb', line 17

def url
  @url
end