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. Deprecated: this message is no longer populated. All certification data is now provided by BeCause.
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.
532 533 534 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 532 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
519 520 521 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 519 def awarded @awarded end |
#awarded_exception ⇒ String
Awarded exception.
Corresponds to the JSON property awardedException
525 526 527 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 525 def awarded_exception @awarded_exception end |
#eco_certificate ⇒ String
Required. The eco certificate.
Corresponds to the JSON property ecoCertificate
530 531 532 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 530 def eco_certificate @eco_certificate end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
537 538 539 540 541 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 537 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 |