Class: Google::Apis::SolarV1::SizeAndSunshineStats
- Inherits:
-
Object
- Object
- Google::Apis::SolarV1::SizeAndSunshineStats
- 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
Size and sunniness quantiles of a roof, or part of a roof.
Instance Attribute Summary collapse
-
#area_meters2 ⇒ Float
The area of the roof or roof segment, in m^2.
-
#ground_area_meters2 ⇒ Float
The ground footprint area covered by the roof or roof segment, in m^2.
-
#sunshine_quantiles ⇒ Array<Float>
Quantiles of the pointwise sunniness across the area.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SizeAndSunshineStats
constructor
A new instance of SizeAndSunshineStats.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SizeAndSunshineStats
Returns a new instance of SizeAndSunshineStats.
893 894 895 |
# File 'lib/google/apis/solar_v1/classes.rb', line 893 def initialize(**args) update!(**args) end |
Instance Attribute Details
#area_meters2 ⇒ Float
The area of the roof or roof segment, in m^2. This is the roof area (
accounting for tilt), not the ground footprint area.
Corresponds to the JSON property areaMeters2
878 879 880 |
# File 'lib/google/apis/solar_v1/classes.rb', line 878 def area_meters2 @area_meters2 end |
#ground_area_meters2 ⇒ Float
The ground footprint area covered by the roof or roof segment, in m^2.
Corresponds to the JSON property groundAreaMeters2
883 884 885 |
# File 'lib/google/apis/solar_v1/classes.rb', line 883 def ground_area_meters2 @ground_area_meters2 end |
#sunshine_quantiles ⇒ Array<Float>
Quantiles of the pointwise sunniness across the area. If there are N values
here, this represents the (N-1)-iles. For example, if there are 5 values, then
they would be the quartiles (min, 25%, 50%, 75%, max). Values are in annual
kWh/kW like max_sunshine_hours_per_year.
Corresponds to the JSON property sunshineQuantiles
891 892 893 |
# File 'lib/google/apis/solar_v1/classes.rb', line 891 def sunshine_quantiles @sunshine_quantiles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
898 899 900 901 902 |
# File 'lib/google/apis/solar_v1/classes.rb', line 898 def update!(**args) @area_meters2 = args[:area_meters2] if args.key?(:area_meters2) @ground_area_meters2 = args[:ground_area_meters2] if args.key?(:ground_area_meters2) @sunshine_quantiles = args[:sunshine_quantiles] if args.key?(:sunshine_quantiles) end |