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-0.1.13 lib/centaman/object/capacity.rb
centaman-0.1.12 lib/centaman/object/capacity.rb
centaman-0.1.11 lib/centaman/object/capacity.rb
centaman-0.1.10 lib/centaman/object/capacity.rb
centaman-0.1.9 lib/centaman/object/capacity.rb
centaman-0.1.8 lib/centaman/object/capacity.rb
centaman-0.1.7 lib/centaman/object/capacity.rb
centaman-0.1.6 lib/centaman/object/capacity.rb
centaman-0.1.5 lib/centaman/object/capacity.rb
centaman-0.1.4 lib/centaman/object/capacity.rb
centaman-0.1.3 lib/centaman/object/capacity.rb
centaman-0.1.2 lib/centaman/object/capacity.rb
centaman-0.1.1 lib/centaman/object/capacity.rb
centaman-0.1.0 lib/centaman/object/capacity.rb