class Centaman::Object::BookingType

Public Instance Methods

attributes() click to toggle source

rubocop:disable Metrics/MethodLength

# 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
json() click to toggle source
# File lib/centaman/object/booking_type.rb, line 3
def json
  {
    booking_type_id: booking_type_id,
    booking_description: booking_description
  }
end