Class: Centaman::Object::GeneralAdmissionTicket
- Inherits:
-
Centaman::Object
- Object
- Centaman::Object
- Centaman::Object::GeneralAdmissionTicket
- Defined in:
- lib/centaman/object/general_admission_ticket.rb
Instance Method Summary collapse
-
#attributes ⇒ Object
rubocop:disable Metrics/MethodLength.
Methods inherited from Centaman::Object
#after_init, #define_variables, #initialize
Constructor Details
This class inherits a constructor from Centaman::Object
Instance Method Details
#attributes ⇒ Object
rubocop:disable Metrics/MethodLength
4 5 6 7 8 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/general_admission_ticket.rb', line 4 def attributes [ Centaman::Attribute.new( centaman_key: 'TicketID', app_key: :id, type: :integer ), Centaman::Attribute.new( centaman_key: 'TicketDescription', app_key: :description, type: :string ), Centaman::Attribute.new( centaman_key: 'DepartmentID', app_key: :department_id, type: :integer ), Centaman::Attribute.new( centaman_key: 'DepartmentName', app_key: :department_name, type: :string ), Centaman::Attribute.new( centaman_key: 'TicketMinimumQuantity', app_key: :minimum_quantity, type: :integer ), Centaman::Attribute.new( centaman_key: 'TicketMaximumQuantity', app_key: :maximum_quantity, type: :integer ), Centaman::Attribute.new( centaman_key: 'TicketValidity', app_key: :validity, type: :datetime ), Centaman::Attribute.new( centaman_key: 'TicketNormalPrice', app_key: :normal_price, type: :float ), Centaman::Attribute.new( centaman_key: 'TicketWebPrice', app_key: :web_price, type: :float ), Centaman::Attribute.new( centaman_key: 'TaxInclusive', app_key: :tax_inclusive, type: :boolean ), Centaman::Attribute.new( centaman_key: 'TaxPercentage', app_key: :tax_percentage, type: :float ), Centaman::Attribute.new( centaman_key: 'CouponRequired', app_key: :coupon_required, type: :boolean ), Centaman::Attribute.new( centaman_key: 'ShowTicket', app_key: :show_ticket, type: :boolean ), ] end |