Class: Google::Apis::MybusinesslodgingV1::Sustainability

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

Sustainability practices implemented at the hotel.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_efficiencyGoogle::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_certificationsGoogle::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_sourcingGoogle::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_reductionGoogle::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_conservationGoogle::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