Class: Google::Apis::AreainsightsV1::CustomArea

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

Custom Area.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CustomArea

Returns a new instance of CustomArea.



124
125
126
# File 'lib/google/apis/areainsights_v1/classes.rb', line 124

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

Instance Attribute Details

#polygonGoogle::Apis::AreainsightsV1::Polygon

A polygon is represented by a series of connected coordinates in an counterclockwise ordered sequence. The coordinates form a closed loop and define a filled region. The first and last coordinates are equivalent, and they must contain identical values. The format is a simplified version of GeoJSON polygons (we only support one counterclockwise exterior ring). Corresponds to the JSON property polygon



122
123
124
# File 'lib/google/apis/areainsights_v1/classes.rb', line 122

def polygon
  @polygon
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



129
130
131
# File 'lib/google/apis/areainsights_v1/classes.rb', line 129

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