class OmnivoreIO::Location
Attributes
client[RW]
Public Class Methods
new(client, attributes={})
click to toggle source
# File lib/omnivore-io/api/location.rb, line 8 def initialize(client, attributes={}) self.client = client attributes.each do |key, value| if self.respond_to? "#{key}=".to_sym self.send "#{key}=".to_sym, value end end end
Public Instance Methods
online?()
click to toggle source
# File lib/omnivore-io/api/location.rb, line 29 def online? self.status == 'online' end
order_types(options={})
click to toggle source
# File lib/omnivore-io/api/location.rb, line 21 def order_types(options={}) client.get_order_types(self.id, options) end
tickets(options={})
click to toggle source
# File lib/omnivore-io/api/location.rb, line 25 def tickets(options={}) client.get_tickets(self.id, options) end