Class: Google::Apis::FusiontablesV2::Geometry

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

Overview

Represents a Geometry object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Geometry

Returns a new instance of Geometry



274
275
276
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 274

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

Instance Attribute Details

#geometriesArray<Object>

The list of geometries in this geometry collection. Corresponds to the JSON property geometries

Returns:

  • (Array<Object>)


262
263
264
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 262

def geometries
  @geometries
end

#geometryObject

Corresponds to the JSON property geometry

Returns:

  • (Object)


267
268
269
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 267

def geometry
  @geometry
end

#typeString

Type: A collection of geometries. Corresponds to the JSON property type

Returns:

  • (String)


272
273
274
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 272

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



279
280
281
282
283
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 279

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