Class: Google::Apis::SolarV1::LatLngBox

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

A bounding box in lat/lng coordinates.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LatLngBox

Returns a new instance of LatLngBox.



620
621
622
# File 'lib/google/apis/solar_v1/classes.rb', line 620

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#neGoogle::Apis::SolarV1::LatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property ne



610
611
612
# File 'lib/google/apis/solar_v1/classes.rb', line 610

def ne
  @ne
end

#swGoogle::Apis::SolarV1::LatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property sw



618
619
620
# File 'lib/google/apis/solar_v1/classes.rb', line 618

def sw
  @sw
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



625
626
627
628
# File 'lib/google/apis/solar_v1/classes.rb', line 625

def update!(**args)
  @ne = args[:ne] if args.key?(:ne)
  @sw = args[:sw] if args.key?(:sw)
end