Sha256: 9a38375997d4e33113a1824aaf0d1f7a058d6872953234c370d8f9de4661a8af
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
require_relative 'resource' require_relative 'order' module TicketingHub class Ticket < Resource def fields client.get "#{path}/#{id}/fields" end def order client.get "#{path}/#{id}/order", {}, TicketingHub::Order end def attended? ! attended_at.nil? end def attend! merge! client.post "#{path}/#{id}/attend" rescue TicketingHub::UnprocessableEntity => e merge! e.response_body raise e end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ticketinghub-1.1.1 | lib/ticketing_hub/ticket.rb |
ticketinghub-1.1.0 | lib/ticketing_hub/ticket.rb |