Class: Google::Apis::MybusinesslodgingV1::Policies

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/mybusinesslodging_v1/classes.rb,
lib/google/apis/mybusinesslodging_v1/representations.rb,
lib/google/apis/mybusinesslodging_v1/representations.rb

Overview

Property rules that impact guests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Policies

Returns a new instance of Policies.



3110
3111
3112
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3110

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#all_inclusive_availableBoolean Also known as: all_inclusive_available?

All inclusive available. The hotel offers a rate option that includes the cost of the room, meals, activities, and other amenities that might otherwise be charged separately. Corresponds to the JSON property allInclusiveAvailable

Returns:

  • (Boolean)


3011
3012
3013
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3011

def all_inclusive_available
  @all_inclusive_available
end

#all_inclusive_available_exceptionString

All inclusive available exception. Corresponds to the JSON property allInclusiveAvailableException

Returns:

  • (String)


3017
3018
3019
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3017

def all_inclusive_available_exception
  @all_inclusive_available_exception
end

#all_inclusive_onlyBoolean Also known as: all_inclusive_only?

All inclusive only. The only rate option offered by the hotel is a rate that includes the cost of the room, meals, activities and other amenities that might otherwise be charged separately. Corresponds to the JSON property allInclusiveOnly

Returns:

  • (Boolean)


3024
3025
3026
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3024

def all_inclusive_only
  @all_inclusive_only
end

#all_inclusive_only_exceptionString

All inclusive only exception. Corresponds to the JSON property allInclusiveOnlyException

Returns:

  • (String)


3030
3031
3032
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3030

def all_inclusive_only_exception
  @all_inclusive_only_exception
end

#checkin_timeGoogle::Apis::MybusinesslodgingV1::TimeOfDay

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and google.protobuf.Timestamp. Corresponds to the JSON property checkinTime



3037
3038
3039
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3037

def checkin_time
  @checkin_time
end

#checkin_time_exceptionString

Check-in time exception. Corresponds to the JSON property checkinTimeException

Returns:

  • (String)


3042
3043
3044
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3042

def checkin_time_exception
  @checkin_time_exception
end

#checkout_timeGoogle::Apis::MybusinesslodgingV1::TimeOfDay

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are google.type.Date and google.protobuf.Timestamp. Corresponds to the JSON property checkoutTime



3049
3050
3051
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3049

def checkout_time
  @checkout_time
end

#checkout_time_exceptionString

Check-out time exception. Corresponds to the JSON property checkoutTimeException

Returns:

  • (String)


3054
3055
3056
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3054

def checkout_time_exception
  @checkout_time_exception
end

#kids_stay_freeBoolean Also known as: kids_stay_free?

Kids stay free. The children of guests are allowed to stay in the room/suite of a parent or adult without an additional fee. The policy may or may not stipulate a limit of the child's age or the overall number of children allowed. Corresponds to the JSON property kidsStayFree

Returns:

  • (Boolean)


3061
3062
3063
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3061

def kids_stay_free
  @kids_stay_free
end

#kids_stay_free_exceptionString

Kids stay free exception. Corresponds to the JSON property kidsStayFreeException

Returns:

  • (String)


3067
3068
3069
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3067

def kids_stay_free_exception
  @kids_stay_free_exception
end

#max_child_ageFixnum

Max child age. The hotel allows children up to a certain age to stay in the room/suite of a parent or adult without an additional fee. Corresponds to the JSON property maxChildAge

Returns:

  • (Fixnum)


3073
3074
3075
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3073

def max_child_age
  @max_child_age
end

#max_child_age_exceptionString

Max child age exception. Corresponds to the JSON property maxChildAgeException

Returns:

  • (String)


3078
3079
3080
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3078

def max_child_age_exception
  @max_child_age_exception
end

#max_kids_stay_free_countFixnum

Max kids stay free count. The hotel allows a specific, defined number of children to stay in the room/suite of a parent or adult without an additional fee. Corresponds to the JSON property maxKidsStayFreeCount

Returns:

  • (Fixnum)


3085
3086
3087
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3085

def max_kids_stay_free_count
  @max_kids_stay_free_count
end

#max_kids_stay_free_count_exceptionString

Max kids stay free count exception. Corresponds to the JSON property maxKidsStayFreeCountException

Returns:

  • (String)


3090
3091
3092
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3090

def max_kids_stay_free_count_exception
  @max_kids_stay_free_count_exception
end

#payment_optionsGoogle::Apis::MybusinesslodgingV1::PaymentOptions

Forms of payment accepted at the property. Corresponds to the JSON property paymentOptions



3095
3096
3097
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3095

def payment_options
  @payment_options
end

#smoke_free_propertyBoolean Also known as: smoke_free_property?

Smoke free property. Smoking is not allowed inside the building, on balconies, or in outside spaces. Hotels that offer a designated area for guests to smoke are not considered smoke-free properties. Corresponds to the JSON property smokeFreeProperty

Returns:

  • (Boolean)


3102
3103
3104
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3102

def smoke_free_property
  @smoke_free_property
end

#smoke_free_property_exceptionString

Smoke free property exception. Corresponds to the JSON property smokeFreePropertyException

Returns:

  • (String)


3108
3109
3110
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3108

def smoke_free_property_exception
  @smoke_free_property_exception
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3115

def update!(**args)
  @all_inclusive_available = args[:all_inclusive_available] if args.key?(:all_inclusive_available)
  @all_inclusive_available_exception = args[:all_inclusive_available_exception] if args.key?(:all_inclusive_available_exception)
  @all_inclusive_only = args[:all_inclusive_only] if args.key?(:all_inclusive_only)
  @all_inclusive_only_exception = args[:all_inclusive_only_exception] if args.key?(:all_inclusive_only_exception)
  @checkin_time = args[:checkin_time] if args.key?(:checkin_time)
  @checkin_time_exception = args[:checkin_time_exception] if args.key?(:checkin_time_exception)
  @checkout_time = args[:checkout_time] if args.key?(:checkout_time)
  @checkout_time_exception = args[:checkout_time_exception] if args.key?(:checkout_time_exception)
  @kids_stay_free = args[:kids_stay_free] if args.key?(:kids_stay_free)
  @kids_stay_free_exception = args[:kids_stay_free_exception] if args.key?(:kids_stay_free_exception)
  @max_child_age = args[:max_child_age] if args.key?(:max_child_age)
  @max_child_age_exception = args[:max_child_age_exception] if args.key?(:max_child_age_exception)
  @max_kids_stay_free_count = args[:max_kids_stay_free_count] if args.key?(:max_kids_stay_free_count)
  @max_kids_stay_free_count_exception = args[:max_kids_stay_free_count_exception] if args.key?(:max_kids_stay_free_count_exception)
  @payment_options = args[:payment_options] if args.key?(:payment_options)
  @smoke_free_property = args[:smoke_free_property] if args.key?(:smoke_free_property)
  @smoke_free_property_exception = args[:smoke_free_property_exception] if args.key?(:smoke_free_property_exception)
end