class Centaman::Service::HoldTicket
Attributes
quantity[R]
timed_ticket_id[R]
timed_ticket_type_id[R]
Public Instance Methods
after_init(args)
click to toggle source
# File lib/centaman/service/hold_ticket.rb, line 5 def after_init(args) @timed_ticket_type_id = args[:timed_ticket_type_id] @timed_ticket_id = args[:timed_ticket_id] @quantity = args[:quantity] end
after_post(response)
click to toggle source
# File lib/centaman/service/hold_ticket.rb, line 11 def after_post(response) response.parsed_response end
endpoint()
click to toggle source
# File lib/centaman/service/hold_ticket.rb, line 15 def endpoint '/ticket_services/TimedTicketType' end
object_class()
click to toggle source
# File lib/centaman/service/hold_ticket.rb, line 19 def object_class Centaman::Object::BookingTime end
options()
click to toggle source
Calls superclass method
# File lib/centaman/service/hold_ticket.rb, line 33 def options super + [ { key: 'TimedTicketTypeId', value: timed_ticket_type_id.to_i }, { key: 'TimedTicketId', value: timed_ticket_id }, { key: 'NumberOfTickets', value: quantity } ] end
options_hash()
click to toggle source
# File lib/centaman/service/hold_ticket.rb, line 23 def options_hash [ { 'TimedTicketTypeId' => timed_ticket_type_id.to_i, 'TimedTicketId' => timed_ticket_id, 'NumberOfTickets' => quantity } ].to_json end