Class: Google::Apis::SolarV1::SolarPanelConfig
- Inherits:
-
Object
- Object
- Google::Apis::SolarV1::SolarPanelConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/solar_v1/classes.rb,
lib/google/apis/solar_v1/representations.rb,
lib/google/apis/solar_v1/representations.rb
Overview
SolarPanelConfig describes a particular placement of solar panels on the roof.
Instance Attribute Summary collapse
-
#panels_count ⇒ Fixnum
Total number of panels.
-
#roof_segment_summaries ⇒ Array<Google::Apis::SolarV1::RoofSegmentSummary>
Information about the production of each roof segment that is carrying at least one panel in this layout.
-
#yearly_energy_dc_kwh ⇒ Float
How much sunlight energy this layout captures over the course of a year, in DC kWh, assuming the panels described above.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SolarPanelConfig
constructor
A new instance of SolarPanelConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SolarPanelConfig
Returns a new instance of SolarPanelConfig.
973 974 975 |
# File 'lib/google/apis/solar_v1/classes.rb', line 973 def initialize(**args) update!(**args) end |
Instance Attribute Details
#panels_count ⇒ Fixnum
Total number of panels. Note that this is redundant to (the sum of) the
corresponding fields in roof_segment_summaries.
Corresponds to the JSON property panelsCount
958 959 960 |
# File 'lib/google/apis/solar_v1/classes.rb', line 958 def panels_count @panels_count end |
#roof_segment_summaries ⇒ Array<Google::Apis::SolarV1::RoofSegmentSummary>
Information about the production of each roof segment that is carrying at
least one panel in this layout. roof_segment_summaries[i]
describes the i-th
roof segment, including its size, expected production and orientation.
Corresponds to the JSON property roofSegmentSummaries
965 966 967 |
# File 'lib/google/apis/solar_v1/classes.rb', line 965 def roof_segment_summaries @roof_segment_summaries end |
#yearly_energy_dc_kwh ⇒ Float
How much sunlight energy this layout captures over the course of a year, in DC
kWh, assuming the panels described above.
Corresponds to the JSON property yearlyEnergyDcKwh
971 972 973 |
# File 'lib/google/apis/solar_v1/classes.rb', line 971 def yearly_energy_dc_kwh @yearly_energy_dc_kwh end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
978 979 980 981 982 |
# File 'lib/google/apis/solar_v1/classes.rb', line 978 def update!(**args) @panels_count = args[:panels_count] if args.key?(:panels_count) @roof_segment_summaries = args[:roof_segment_summaries] if args.key?(:roof_segment_summaries) @yearly_energy_dc_kwh = args[:yearly_energy_dc_kwh] if args.key?(:yearly_energy_dc_kwh) end |