Class: Centaman::Object::PurchasedTicket
- Inherits:
-
Centaman::Object
- Object
- Centaman::Object
- Centaman::Object::PurchasedTicket
- Defined in:
- lib/centaman/object/purchased_ticket.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
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_ticket.rb', line 2 def id @id end |
Instance Method Details
#attributes ⇒ Object
9 10 11 12 13 14 15 16 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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/centaman/object/purchased_ticket.rb', line 9 def attributes [ Centaman::Attribute.new( centaman_key: "ItemDescription", app_key: :item_description, type: :string ), Centaman::Attribute.new( centaman_key: "ItemDescription", app_key: :display_age_group, type: :display_age_group ), Centaman::Attribute.new( centaman_key: "ItemCode", app_key: :item_code, type: :string ), Centaman::Attribute.new( centaman_key: "Quantity", app_key: :quantity, type: :integer ), Centaman::Attribute.new( centaman_key: "ItemCost", app_key: :item_cost, type: :float ), Centaman::Attribute.new( centaman_key: "TotalPaid", app_key: :total_paid, type: :float ), Centaman::Attribute.new( centaman_key: "TaxPaid", app_key: :tax_paid, type: :float ), Centaman::Attribute.new( centaman_key: "Barcode", app_key: :barcode, type: :string ), Centaman::Attribute.new( centaman_key: "AttendeeName", app_key: :attendee_name, type: :string ), Centaman::Attribute.new( centaman_key: "IsExtraItem", app_key: :is_extra_item, type: :boolean ), Centaman::Attribute.new( centaman_key: "CouponCode", app_key: :coupon_code, type: :string ), Centaman::Attribute.new( centaman_key: "CostRateId", app_key: :cost_rate_id, type: :string ), ] end |
#define_variables(args = {}) ⇒ Object
4 5 6 7 |
# File 'lib/centaman/object/purchased_ticket.rb', line 4 def define_variables(args = {}) super @id = item_code end |