Class: Google::Apis::MybusinesslodgingV1::GuestUnitType
- Inherits:
-
Object
- Object
- Google::Apis::MybusinesslodgingV1::GuestUnitType
- 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
A specific type of unit primarily defined by its features.
Instance Attribute Summary collapse
-
#codes ⇒ Array<String>
Required.
-
#features ⇒ Google::Apis::MybusinesslodgingV1::GuestUnitFeatures
Features and available amenities in the guest unit.
-
#label ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GuestUnitType
constructor
A new instance of GuestUnitType.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GuestUnitType
Returns a new instance of GuestUnitType.
1240 1241 1242 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1240 def initialize(**args) update!(**args) end |
Instance Attribute Details
#codes ⇒ Array<String>
Required. Unit or room code identifiers for a single GuestUnitType. Each code
must be unique within a Lodging instance.
Corresponds to the JSON property codes
1228 1229 1230 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1228 def codes @codes end |
#features ⇒ Google::Apis::MybusinesslodgingV1::GuestUnitFeatures
Features and available amenities in the guest unit.
Corresponds to the JSON property features
1233 1234 1235 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1233 def features @features end |
#label ⇒ String
Required. Short, English label or name of the GuestUnitType. Target <50 chars.
Corresponds to the JSON property label
1238 1239 1240 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1238 def label @label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1245 1246 1247 1248 1249 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1245 def update!(**args) @codes = args[:codes] if args.key?(:codes) @features = args[:features] if args.key?(:features) @label = args[:label] if args.key?(:label) end |