Class: Timepad::Order

Inherits:
Object
  • Object
show all
Defined in:
lib/timepad/order.rb

Instance Method Summary collapse

Constructor Details

#initialize(timepad_client) ⇒ Order

Returns a new instance of Order.



28
29
30
# File 'lib/timepad/order.rb', line 28

def initialize(timepad_client)
  @client = timepad_client
end

Instance Method Details

#list(event_id, attrs = nil) ⇒ Array

Get event orders

Returns:

  • (Array)


36
37
38
# File 'lib/timepad/order.rb', line 36

def list(event_id, attrs = nil)
  response = @client.request "events/#{event_id}/orders", attrs
end