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.



3819
3820
3821
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3819

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



3797
3798
3799
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3797

def energy_efficiency
  @energy_efficiency
end

#sustainability_certificationsGoogle::Apis::MybusinesslodgingV1::SustainabilityCertifications

Sustainability certifications the hotel has been awarded. Corresponds to the JSON property sustainabilityCertifications



3802
3803
3804
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3802

def sustainability_certifications
  @sustainability_certifications
end

#sustainable_sourcingGoogle::Apis::MybusinesslodgingV1::SustainableSourcing

Sustainable sourcing practices implemented at the hotel. Corresponds to the JSON property sustainableSourcing



3807
3808
3809
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3807

def sustainable_sourcing
  @sustainable_sourcing
end

#waste_reductionGoogle::Apis::MybusinesslodgingV1::WasteReduction

Waste reduction practices implemented at the hotel. Corresponds to the JSON property wasteReduction



3812
3813
3814
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3812

def waste_reduction
  @waste_reduction
end

#water_conservationGoogle::Apis::MybusinesslodgingV1::WaterConservation

Water conservation practices implemented at the hotel. Corresponds to the JSON property waterConservation



3817
3818
3819
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3817

def water_conservation
  @water_conservation
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3824
3825
3826
3827
3828
3829
3830
# File 'lib/google/apis/mybusinesslodging_v1/classes.rb', line 3824

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