Class: Hungry::Venue

Inherits:
Resource show all
Defined in:
lib/hungry/venue.rb,
lib/hungry/venue/collection.rb

Defined Under Namespace

Classes: Collection

Instance Attribute Summary collapse

Attributes inherited from Resource

#attributes, #data_source, #resources

Class Method Summary collapse

Methods inherited from Resource

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

Constructor Details

This class inherits a constructor from Hungry::Resource

Instance Attribute Details

#addressObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def address
  @address
end

#awardsObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def awards
  @awards
end

#capacityObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def capacity
  @capacity
end

#categoryObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def category
  @category
end

#countersObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def counters
  @counters
end

#created_atObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def created_at
  @created_at
end

#currency_symbolObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def currency_symbol
  @currency_symbol
end

#descriptionObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def description
  @description
end

#distanceObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def distance
  @distance
end

#faxObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def fax
  @fax
end

#geolocationObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def geolocation
  @geolocation
end

#holidaysObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def holidays
  @holidays
end

#idObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def id
  @id
end

#imagesObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def images
  @images
end

#maintainersObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def maintainers
  @maintainers
end

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def menus
  @menus
end

#nameObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def name
  @name
end

#opening_hoursObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def opening_hours
  @opening_hours
end

#planObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def plan
  @plan
end

#pricesObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def prices
  @prices
end

#ratingObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def rating
  @rating
end

#reachabilityObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def reachability
  @reachability
end

#relevanceObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def relevance
  @relevance
end

#staffObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def staff
  @staff
end

#statusObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def status
  @status
end

#taglineObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def tagline
  @tagline
end

#tagsObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def tags
  @tags
end

#telephoneObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def telephone
  @telephone
end

#updated_atObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def updated_at
  @updated_at
end

#urlObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def url
  @url
end

#website_urlObject

Preview:



50
51
52
# File 'lib/hungry/venue.rb', line 50

def website_url
  @website_url
end

Class Method Details

.collectionObject

FINDERS:



19
20
21
# File 'lib/hungry/venue.rb', line 19

def self.collection
  Collection.new(self, endpoint, default_criteria)
end

.maintainable_by(user_or_id) ⇒ Object



39
40
41
# File 'lib/hungry/venue.rb', line 39

def self.maintainable_by(user_or_id)
  collection.maintainable_by(user_or_id)
end

.nearby(geolocation, options = {}) ⇒ Object



27
28
29
# File 'lib/hungry/venue.rb', line 27

def self.nearby(geolocation, options = {})
  collection.nearby(geolocation, options)
end

.paginate(page, options = {}) ⇒ Object



43
44
45
# File 'lib/hungry/venue.rb', line 43

def self.paginate(page, options = {})
  collection.paginate(page, options)
end

.search(query) ⇒ Object



23
24
25
# File 'lib/hungry/venue.rb', line 23

def self.search(query)
  collection.search(query)
end

.sort_by(sortable) ⇒ Object



35
36
37
# File 'lib/hungry/venue.rb', line 35

def self.sort_by(sortable)
  collection.sort_by(sortable)
end

.tagged_with(*tags) ⇒ Object



31
32
33
# File 'lib/hungry/venue.rb', line 31

def self.tagged_with(*tags)
  collection.tagged_with(*tags)
end