Class: Google::Apis::MybusinesslodgingV1::EcoCertification

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

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

Instance Method Summary collapse

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

#awardedBoolean Also known as: awarded?

Whether the eco certificate was awarded or not. Corresponds to the JSON property awarded

Returns:

  • (Boolean)


519
520
521
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 519

def awarded
  @awarded
end

#awarded_exceptionString

Awarded exception. Corresponds to the JSON property awardedException

Returns:

  • (String)


525
526
527
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 525

def awarded_exception
  @awarded_exception
end

#eco_certificateString

Required. The eco certificate. Corresponds to the JSON property ecoCertificate

Returns:

  • (String)


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