class Allmenus::Restaurant
Attributes
location[RW]
Public Class Methods
find(id)
click to toggle source
# File lib/allmenus/restaurant.rb, line 14 def self.find(id) response = Allmenus::Connection.get({restaurant_id: id, type: 'info'}) self.parse(response.body).tap do |r| r.location = Location.new(r.address, r.city, r.state, r.zip_code) end end