Sha256: 013b8a1a93db6eb526829fc781e7213dbbe9acb3dd352bef55050095ec15b64f

Contents?: true

Size: 1.42 KB

Versions: 30

Compression:

Stored size: 1.42 KB

Contents

module Centaman
  class Object::Effect < Centaman::Object
    # rubocop:disable Metrics/MethodLength
    def attributes
      [
        Centaman::Attribute.new(
          centaman_key: 'Valid',
          app_key: :valid,
          type: :boolean
        ),
        Centaman::Attribute.new(
          centaman_key: 'ProductType',
          app_key: :product_type,
          type: :string
        ),
        Centaman::Attribute.new(
          centaman_key: 'ProductCode',
          app_key: :product_code,
          type: :integer
        ),
        Centaman::Attribute.new(
          centaman_key: 'EffectType',
          app_key: :effect_type,
          type: :string
        ),
        Centaman::Attribute.new(
          centaman_key: 'Amount',
          app_key: :amount,
          type: :float
        ),
        Centaman::Attribute.new(
          centaman_key: 'ReasonInvalid',
          app_key: :reason_invalid,
          type: :string
        ),
        Centaman::Attribute.new(
          centaman_key: 'ValidFrom',
          app_key: :valid_from,
          type: :datetime
        ),
        Centaman::Attribute.new(
          centaman_key: 'ValidUntil',
          app_key: :valid_until,
          type: :datetime
        ),
        Centaman::Attribute.new(
          centaman_key: 'WaiveTicketFee',
          app_key: :waive_ticket_fee,
          type: :boolean
        )
      ]
    end
    # rubocop:enable Metrics/MethodLength
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
centaman-4.0.5 lib/centaman/object/effect.rb
centaman-4.0.4 lib/centaman/object/effect.rb
centaman-4.0.3 lib/centaman/object/effect.rb
centaman-4.0.2 lib/centaman/object/effect.rb
centaman-4.0.1 lib/centaman/object/effect.rb
centaman-3.1.2 lib/centaman/object/effect.rb
centaman-3.1.1 lib/centaman/object/effect.rb
centaman-3.1.0 lib/centaman/object/effect.rb
centaman-3.0.0 lib/centaman/object/effect.rb
centaman-2.1.0 lib/centaman/object/effect.rb
centaman-2.0.0 lib/centaman/object/effect.rb
centaman-1.0.0 lib/centaman/object/effect.rb
centaman-0.2.3 lib/centaman/object/effect.rb
centaman-0.2.2 lib/centaman/object/effect.rb
centaman-0.2.1 lib/centaman/object/effect.rb
centaman-0.2.0 lib/centaman/object/effect.rb
centaman-0.1.13 lib/centaman/object/effect.rb
centaman-0.1.12 lib/centaman/object/effect.rb
centaman-0.1.11 lib/centaman/object/effect.rb
centaman-0.1.10 lib/centaman/object/effect.rb