Sha256: 26db993407d8950b2f47c75cfcc301654124376998e03d523b943504c07c5af2

Contents?: true

Size: 814 Bytes

Versions: 54

Compression:

Stored size: 814 Bytes

Contents

module Centaman
  class Object::Capacity < Centaman::Object
    attr_accessor :sold_out

    # rubocop:disable Metrics/MethodLength
    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
    # rubocop:enable Metrics/MethodLength
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
centaman-8.0.0 lib/centaman/object/capacity.rb
centaman-7.0.5 lib/centaman/object/capacity.rb
centaman-7.0.4 lib/centaman/object/capacity.rb
centaman-7.0.3 lib/centaman/object/capacity.rb
centaman-7.0.2 lib/centaman/object/capacity.rb
centaman-7.0.1 lib/centaman/object/capacity.rb
centaman-7.0.0 lib/centaman/object/capacity.rb
centaman-6.0.8 lib/centaman/object/capacity.rb
centaman-6.0.7 lib/centaman/object/capacity.rb
centaman-6.0.5 lib/centaman/object/capacity.rb
centaman-6.0.4 lib/centaman/object/capacity.rb
centaman-6.0.3 lib/centaman/object/capacity.rb
centaman-6.0.2 lib/centaman/object/capacity.rb
centaman-6.0.1 lib/centaman/object/capacity.rb
centaman-6.0.0 lib/centaman/object/capacity.rb
centaman-5.0.8 lib/centaman/object/capacity.rb
centaman-5.0.7 lib/centaman/object/capacity.rb
centaman-5.0.6 lib/centaman/object/capacity.rb
centaman-5.0.5 lib/centaman/object/capacity.rb
centaman-5.0.4 lib/centaman/object/capacity.rb