Class: Centaman::Object::Capacity
- Inherits:
-
Centaman::Object
- Object
- Centaman::Object
- Centaman::Object::Capacity
- Defined in:
- lib/centaman/object/capacity.rb
Instance Attribute Summary collapse
-
#sold_out ⇒ Object
Returns the value of attribute sold_out.
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 Attribute Details
#sold_out ⇒ Object
Returns the value of attribute sold_out.
3 4 5 |
# File 'lib/centaman/object/capacity.rb', line 3 def sold_out @sold_out end |
Instance Method Details
#attributes ⇒ Object
rubocop:disable Metrics/MethodLength
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/centaman/object/capacity.rb', line 6 def attributes [ Centaman::Attribute.new( centaman_key: 'TimedTicketTypeId', app_key: :booking_time_id, type: :integer ), Centaman::Attribute.new( centaman_key: 'TimedTicketTypeDescription', app_key: :booking_time_description, type: :integer ), Centaman::Attribute.new( centaman_key: 'Capacity', app_key: :capacity, type: :integer ), Centaman::Attribute.new( centaman_key: 'vacancy', app_key: :vacancy, type: :integer ) ] end |