class TicketingHub::Ticket
Public Instance Methods
attend!()
click to toggle source
# File lib/ticketing_hub/ticket.rb, line 19 def attend! merge! client.post "#{path}/#{id}/attend" rescue TicketingHub::UnprocessableEntity => e merge! e.response_body raise e end
attended?()
click to toggle source
# File lib/ticketing_hub/ticket.rb, line 15 def attended? ! attended_at.nil? end
fields()
click to toggle source
# File lib/ticketing_hub/ticket.rb, line 7 def fields client.get "#{path}/#{id}/fields" end
order()
click to toggle source
# File lib/ticketing_hub/ticket.rb, line 11 def order client.get "#{path}/#{id}/order", {}, TicketingHub::Order end