Class: Google::Apis::MybusinesslodgingV1::EcoCertification
- Inherits:
-
Object
- Object
- Google::Apis::MybusinesslodgingV1::EcoCertification
- 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
An eco certificate awarded to the hotel.
Instance Attribute Summary collapse
-
#awarded ⇒ Boolean
(also: #awarded?)
Whether the eco certificate was awarded or not.
-
#awarded_exception ⇒ String
Awarded exception.
-
#eco_certificate ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EcoCertification
constructor
A new instance of EcoCertification.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EcoCertification
Returns a new instance of EcoCertification.
531 532 533 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 531 def initialize(**args) update!(**args) end |
Instance Attribute Details
#awarded ⇒ Boolean Also known as: awarded?
Whether the eco certificate was awarded or not.
Corresponds to the JSON property awarded
518 519 520 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 518 def awarded @awarded end |
#awarded_exception ⇒ String
Awarded exception.
Corresponds to the JSON property awardedException
524 525 526 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 524 def awarded_exception @awarded_exception end |
#eco_certificate ⇒ String
Required. The eco certificate.
Corresponds to the JSON property ecoCertificate
529 530 531 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 529 def eco_certificate @eco_certificate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
536 537 538 539 540 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 536 def update!(**args) @awarded = args[:awarded] if args.key?(:awarded) @awarded_exception = args[:awarded_exception] if args.key?(:awarded_exception) @eco_certificate = args[:eco_certificate] if args.key?(:eco_certificate) end |