Class: Google::Apis::MybusinesslodgingV1::GuestUnitType

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

A specific type of unit primarily defined by its features.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#codesArray<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

Returns:

  • (Array<String>)


1228
1229
1230
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 1228

def codes
  @codes
end

#featuresGoogle::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

#labelString

Required. Short, English label or name of the GuestUnitType. Target <50 chars. Corresponds to the JSON property label

Returns:

  • (String)


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