Class: Google::Apis::MybusinesslodgingV1::Property

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

General factual information about the property's physical structure and important dates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Property

Returns a new instance of Property.



3399
3400
3401
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3399

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

Instance Attribute Details

#built_yearFixnum

Built year. The year that construction of the property was completed. Corresponds to the JSON property builtYear

Returns:

  • (Fixnum)


3357
3358
3359
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3357

def built_year
  @built_year
end

#built_year_exceptionString

Built year exception. Corresponds to the JSON property builtYearException

Returns:

  • (String)


3362
3363
3364
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3362

def built_year_exception
  @built_year_exception
end

#floors_countFixnum

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

Returns:

  • (Fixnum)


3368
3369
3370
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3368

def floors_count
  @floors_count
end

#floors_count_exceptionString

Floors count exception. Corresponds to the JSON property floorsCountException

Returns:

  • (String)


3373
3374
3375
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3373

def floors_count_exception
  @floors_count_exception
end

#last_renovated_yearFixnum

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

Returns:

  • (Fixnum)


3380
3381
3382
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3380

def last_renovated_year
  @last_renovated_year
end

#last_renovated_year_exceptionString

Last renovated year exception. Corresponds to the JSON property lastRenovatedYearException

Returns:

  • (String)


3385
3386
3387
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3385

def last_renovated_year_exception
  @last_renovated_year_exception
end

#rooms_countFixnum

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

Returns:

  • (Fixnum)


3392
3393
3394
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3392

def rooms_count
  @rooms_count
end

#rooms_count_exceptionString

Rooms count exception. Corresponds to the JSON property roomsCountException

Returns:

  • (String)


3397
3398
3399
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3397

def rooms_count_exception
  @rooms_count_exception
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3404

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