Class: Google::Apis::SolarV1::SizeAndSunshineStats

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_meters2Float

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

Returns:

  • (Float)


878
879
880
# File 'lib/google/apis/solar_v1/classes.rb', line 878

def area_meters2
  @area_meters2
end

#ground_area_meters2Float

The ground footprint area covered by the roof or roof segment, in m^2. Corresponds to the JSON property groundAreaMeters2

Returns:

  • (Float)


883
884
885
# File 'lib/google/apis/solar_v1/classes.rb', line 883

def ground_area_meters2
  @ground_area_meters2
end

#sunshine_quantilesArray<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

Returns:

  • (Array<Float>)


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