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.
3834 3835 3836 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3834 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
3812 3813 3814 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3812 def energy_efficiency @energy_efficiency end |
#sustainability_certifications ⇒ Google::Apis::MybusinesslodgingV1::SustainabilityCertifications
Sustainability certifications the hotel has been awarded.
Corresponds to the JSON property sustainabilityCertifications
3817 3818 3819 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3817 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
3822 3823 3824 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3822 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
3827 3828 3829 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3827 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
3832 3833 3834 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3832 def water_conservation @water_conservation end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3839 3840 3841 3842 3843 3844 3845 |
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3839 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 |