Class: Centaman::Object::PurchasedGeneralAdmissionTicket
- Inherits:
-
Centaman::Object
- Object
- Centaman::Object
- Centaman::Object::PurchasedGeneralAdmissionTicket
- Defined in:
- lib/centaman/object/purchased_general_admission_ticket.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #attributes ⇒ Object
- #define_variables(args = {}) ⇒ Object
- #description ⇒ Object
- #item_code ⇒ Object
Methods inherited from Centaman::Object
Constructor Details
This class inherits a constructor from Centaman::Object
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/centaman/object/purchased_general_admission_ticket.rb', line 2 def id @id end |
Instance Method Details
#attributes ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# 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 = {}) ⇒ Object
4 5 6 7 |
# File 'lib/centaman/object/purchased_general_admission_ticket.rb', line 4 def define_variables(args = {}) super @id = ticket_id end |
#description ⇒ Object
13 14 15 |
# File 'lib/centaman/object/purchased_general_admission_ticket.rb', line 13 def description ticket_description end |
#item_code ⇒ Object
9 10 11 |
# File 'lib/centaman/object/purchased_general_admission_ticket.rb', line 9 def item_code ticket_id end |