Sha256: 92b32878c4d084174e082558d10eb139198ef24aba5607d4acdea3b37cc6e95d

Contents?: true

Size: 589 Bytes

Versions: 54

Compression:

Stored size: 589 Bytes

Contents

module Centaman
  class Object::BookingType < Centaman::Object
    def json
      {
        booking_type_id: booking_type_id,
        booking_description: booking_description
      }
    end

    # rubocop:disable Metrics/MethodLength
    def attributes
      [
        Centaman::Attribute.new(
          centaman_key: 'BookingTypeId',
          app_key: :booking_type_id,
          type: :integer
        ),
        Centaman::Attribute.new(
          centaman_key: 'BookingDescription',
          app_key: :booking_description,
          type: :string
        ),
      ]
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

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