Class: Google::Apis::MybusinesslodgingV1::Property
- Inherits:
-
Object
- Object
- Google::Apis::MybusinesslodgingV1::Property
- 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
General factual information about the property's physical structure and important dates.
Instance Attribute Summary collapse
-
#built_year ⇒ Fixnum
Built year.
-
#built_year_exception ⇒ String
Built year exception.
-
#floors_count ⇒ Fixnum
Floors count.
-
#floors_count_exception ⇒ String
Floors count exception.
-
#last_renovated_year ⇒ Fixnum
Last renovated year.
-
#last_renovated_year_exception ⇒ String
Last renovated year exception.
-
#rooms_count ⇒ Fixnum
Rooms count.
-
#rooms_count_exception ⇒ String
Rooms count exception.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Property
constructor
A new instance of Property.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Property
Returns a new instance of Property.
3588 3589 3590 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3588 def initialize(**args) update!(**args) end |
Instance Attribute Details
#built_year ⇒ Fixnum
Built year. The year that construction of the property was completed.
Corresponds to the JSON property builtYear
3546 3547 3548 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3546 def built_year @built_year end |
#built_year_exception ⇒ String
Built year exception.
Corresponds to the JSON property builtYearException
3551 3552 3553 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3551 def built_year_exception @built_year_exception end |
#floors_count ⇒ Fixnum
Floors count. The number of stories the building has from the ground floor to
the top floor that are accessible to guests.
Corresponds to the JSON property floorsCount
3557 3558 3559 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3557 def floors_count @floors_count end |
#floors_count_exception ⇒ String
Floors count exception.
Corresponds to the JSON property floorsCountException
3562 3563 3564 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3562 def floors_count_exception @floors_count_exception end |
#last_renovated_year ⇒ Fixnum
Last renovated year. The year when the most recent renovation of the property
was completed. Renovation may include all or any combination of the following:
the units, the public spaces, the exterior, or the interior.
Corresponds to the JSON property lastRenovatedYear
3569 3570 3571 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3569 def last_renovated_year @last_renovated_year end |
#last_renovated_year_exception ⇒ String
Last renovated year exception.
Corresponds to the JSON property lastRenovatedYearException
3574 3575 3576 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3574 def last_renovated_year_exception @last_renovated_year_exception end |
#rooms_count ⇒ Fixnum
Rooms count. The total number of rooms and suites bookable by guests for an
overnight stay. Does not include event space, public spaces, conference rooms,
fitness rooms, business centers, spa, salon, restaurants/bars, or shops.
Corresponds to the JSON property roomsCount
3581 3582 3583 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3581 def rooms_count @rooms_count end |
#rooms_count_exception ⇒ String
Rooms count exception.
Corresponds to the JSON property roomsCountException
3586 3587 3588 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3586 def rooms_count_exception @rooms_count_exception end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3593 def update!(**args) @built_year = args[:built_year] if args.key?(:built_year) @built_year_exception = args[:built_year_exception] if args.key?(:built_year_exception) @floors_count = args[:floors_count] if args.key?(:floors_count) @floors_count_exception = args[:floors_count_exception] if args.key?(:floors_count_exception) @last_renovated_year = args[:last_renovated_year] if args.key?(:last_renovated_year) @last_renovated_year_exception = args[:last_renovated_year_exception] if args.key?(:last_renovated_year_exception) @rooms_count = args[:rooms_count] if args.key?(:rooms_count) @rooms_count_exception = args[:rooms_count_exception] if args.key?(:rooms_count_exception) end |