Class: Centaman::Object::BookingType

Inherits:
Centaman::Object show all
Defined in:
lib/centaman/object/booking_type.rb

Instance Method Summary collapse

Methods inherited from Centaman::Object

#after_init, #define_variables, #initialize

Constructor Details

This class inherits a constructor from Centaman::Object

Instance Method Details

#attributesObject

rubocop:disable Metrics/MethodLength



11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/centaman/object/booking_type.rb', line 11

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

#jsonObject



3
4
5
6
7
8
# File 'lib/centaman/object/booking_type.rb', line 3

def json
  {
    booking_type_id: booking_type_id,
    booking_description: booking_description
  }
end