Class: Rlocu::Venue
- Inherits:
-
Object
- Object
- Rlocu::Venue
- Defined in:
- lib/rlocu/venue.rb
Constant Summary collapse
- PROPERTIES =
[:name, :locality, :street_address, :cuisines, :region, :long, :phone, :postal_code, :categories, :has_menu, :country, :lat, :id, :website_url, :resource_uri]
- VENUE_DETAILS =
the Venue class encapsulates the venue_details also keeping them separate for maintainability when they eventually change
[:open_hours, :facebook_url, :twitter_id, :similar_venues, :redirected_from]
Instance Attribute Summary collapse
-
#menus ⇒ Object
Returns the value of attribute menus.
Instance Method Summary collapse
-
#initialize(meta_venue) ⇒ Venue
constructor
A new instance of Venue.
- #update(meta_venue) ⇒ Object
Constructor Details
#initialize(meta_venue) ⇒ Venue
Returns a new instance of Venue.
14 15 16 17 |
# File 'lib/rlocu/venue.rb', line 14 def initialize() @menus = [] update() end |
Instance Attribute Details
#menus ⇒ Object
Returns the value of attribute menus.
11 12 13 |
# File 'lib/rlocu/venue.rb', line 11 def @menus end |
Instance Method Details
#update(meta_venue) ⇒ Object
19 20 21 |
# File 'lib/rlocu/venue.rb', line 19 def update() .each {|k,v| self.send("#{k.to_s}=",v) } end |