class Centaman::Object::PurchasedGeneralAdmissionTicket
Attributes
id[RW]
Public Instance Methods
attributes()
click to toggle source
# File lib/centaman/object/purchased_general_admission_ticket.rb, line 17 def attributes [ Centaman::Attribute.new( centaman_key: 'TicketID', app_key: :ticket_id, type: :integer ), Centaman::Attribute.new( centaman_key: 'Quantity', app_key: :quantity, type: :integer ), Centaman::Attribute.new( centaman_key: 'userid', app_key: :user_id, type: :integer ), Centaman::Attribute.new( centaman_key: 'TicketDescription', app_key: :ticket_description, type: :string ), Centaman::Attribute.new( centaman_key: 'BarCode', app_key: :barcode, type: :string ), Centaman::Attribute.new( centaman_key: 'ReceiptNumber', app_key: :receipt, type: :string ), Centaman::Attribute.new( centaman_key: 'ExpiryDate', app_key: :expiry_date, type: :datetime ), ] end
define_variables(args = {})
click to toggle source
Calls superclass method
Centaman::Object#define_variables
# File lib/centaman/object/purchased_general_admission_ticket.rb, line 4 def define_variables(args = {}) super @id = ticket_id end
description()
click to toggle source
# File lib/centaman/object/purchased_general_admission_ticket.rb, line 13 def description ticket_description end
item_code()
click to toggle source
# File lib/centaman/object/purchased_general_admission_ticket.rb, line 9 def item_code ticket_id end