Class: Google::Apis::AreainsightsV1::Circle

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/areainsights_v1/classes.rb,
lib/google/apis/areainsights_v1/representations.rb,
lib/google/apis/areainsights_v1/representations.rb

Overview

A circle is defined by a center point and radius in meters.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Circle

Returns a new instance of Circle.



48
49
50
# File 'lib/google/apis/areainsights_v1/classes.rb', line 48

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

Instance Attribute Details

#lat_lngGoogle::Apis::AreainsightsV1::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 latLng



35
36
37
# File 'lib/google/apis/areainsights_v1/classes.rb', line 35

def lat_lng
  @lat_lng
end

#placeString

The Place resource name of the center of the circle. Only point places are supported. Corresponds to the JSON property place

Returns:

  • (String)


41
42
43
# File 'lib/google/apis/areainsights_v1/classes.rb', line 41

def place
  @place
end

#radiusFixnum

Optional. The radius of the circle in meters Corresponds to the JSON property radius

Returns:

  • (Fixnum)


46
47
48
# File 'lib/google/apis/areainsights_v1/classes.rb', line 46

def radius
  @radius
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



53
54
55
56
57
# File 'lib/google/apis/areainsights_v1/classes.rb', line 53

def update!(**args)
  @lat_lng = args[:lat_lng] if args.key?(:lat_lng)
  @place = args[:place] if args.key?(:place)
  @radius = args[:radius] if args.key?(:radius)
end