class Google::Apis::FusiontablesV2::Polygon

Represents a polygon object.

Attributes

coordinates[RW]

The coordinates that define the polygon. Corresponds to the JSON property `coordinates` @return [Array<Array<Array<Float>>>]

type[RW]

Type: A polygon geometry. Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/fusiontables_v2/classes.rb, line 443
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/fusiontables_v2/classes.rb, line 448
def update!(**args)
  @coordinates = args[:coordinates] if args.key?(:coordinates)
  @type = args[:type] if args.key?(:type)
end