Class: Google::Apis::MybusinesslodgingV1::Sustainability
- Inherits:
-
Object
- Object
- Google::Apis::MybusinesslodgingV1::Sustainability
- 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
Sustainability practices implemented at the hotel.
Instance Attribute Summary collapse
-
#energy_efficiency ⇒ Google::Apis::MybusinesslodgingV1::EnergyEfficiency
Energy efficiency practices implemented at the hotel.
-
#sustainability_certifications ⇒ Google::Apis::MybusinesslodgingV1::SustainabilityCertifications
Sustainability certifications the hotel has been awarded.
-
#sustainable_sourcing ⇒ Google::Apis::MybusinesslodgingV1::SustainableSourcing
Sustainable sourcing practices implemented at the hotel.
-
#waste_reduction ⇒ Google::Apis::MybusinesslodgingV1::WasteReduction
Waste reduction practices implemented at the hotel.
-
#water_conservation ⇒ Google::Apis::MybusinesslodgingV1::WaterConservation
Water conservation practices implemented at the hotel.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Sustainability
constructor
A new instance of Sustainability.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Sustainability
Returns a new instance of Sustainability.
3838 3839 3840 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3838 def initialize(**args) update!(**args) end |
Instance Attribute Details
#energy_efficiency ⇒ Google::Apis::MybusinesslodgingV1::EnergyEfficiency
Energy efficiency practices implemented at the hotel.
Corresponds to the JSON property energyEfficiency
3814 3815 3816 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3814 def energy_efficiency @energy_efficiency end |
#sustainability_certifications ⇒ Google::Apis::MybusinesslodgingV1::SustainabilityCertifications
Sustainability certifications the hotel has been awarded. Deprecated: this
message is no longer populated. All certification data is now provided by
BeCause.
Corresponds to the JSON property sustainabilityCertifications
3821 3822 3823 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3821 def sustainability_certifications @sustainability_certifications end |
#sustainable_sourcing ⇒ Google::Apis::MybusinesslodgingV1::SustainableSourcing
Sustainable sourcing practices implemented at the hotel.
Corresponds to the JSON property sustainableSourcing
3826 3827 3828 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3826 def sustainable_sourcing @sustainable_sourcing end |
#waste_reduction ⇒ Google::Apis::MybusinesslodgingV1::WasteReduction
Waste reduction practices implemented at the hotel.
Corresponds to the JSON property wasteReduction
3831 3832 3833 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3831 def waste_reduction @waste_reduction end |
#water_conservation ⇒ Google::Apis::MybusinesslodgingV1::WaterConservation
Water conservation practices implemented at the hotel.
Corresponds to the JSON property waterConservation
3836 3837 3838 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3836 def water_conservation @water_conservation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3843 3844 3845 3846 3847 3848 3849 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3843 def update!(**args) @energy_efficiency = args[:energy_efficiency] if args.key?(:energy_efficiency) @sustainability_certifications = args[:sustainability_certifications] if args.key?(:sustainability_certifications) @sustainable_sourcing = args[:sustainable_sourcing] if args.key?(:sustainable_sourcing) @waste_reduction = args[:waste_reduction] if args.key?(:waste_reduction) @water_conservation = args[:water_conservation] if args.key?(:water_conservation) end |