Class: Google::Apis::FusiontablesV1::Geometry

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/fusiontables_v1/classes.rb,
generated/google/apis/fusiontables_v1/representations.rb,
generated/google/apis/fusiontables_v1/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



218
219
220
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 218

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>)


206
207
208
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 206

def geometries
  @geometries
end

#geometryObject

Corresponds to the JSON property geometry

Returns:

  • (Object)


211
212
213
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 211

def geometry
  @geometry
end

#typeString

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

Returns:

  • (String)


216
217
218
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 216

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



223
224
225
226
227
# File 'generated/google/apis/fusiontables_v1/classes.rb', line 223

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