class TicketingHub::Order

Public Instance Methods

confirm!() click to toggle source
# File lib/ticketing_hub/order.rb, line 19
def confirm!
  merge! client.post "#{path}/#{id}/confirm"
rescue TicketingHub::UnprocessableEntity => e
  merge! e.response_body
  raise e
end
fields() click to toggle source
# File lib/ticketing_hub/order.rb, line 15
def fields
  client.get "#{path}/#{id}/fields"
end
tickets() click to toggle source
# File lib/ticketing_hub/order.rb, line 7
def tickets
  self['tickets'].map do |ticket|
    Ticket.new(client, ticket, "#{path}/#{id}/tickets", ticket.id).tap do |ticket|
      ticket.venue_id = self.id
    end
  end
end