Class: Timepad::Order
- Inherits:
-
Object
- Object
- Timepad::Order
- Defined in:
- lib/timepad/order.rb
Instance Method Summary collapse
-
#initialize(timepad_client) ⇒ Order
constructor
A new instance of Order.
-
#list(event_id, attrs = nil) ⇒ Array
Get event orders.
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
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 |