Class: Google::Apis::FusiontablesV2::Geometry
- Inherits:
-
Object
- Object
- Google::Apis::FusiontablesV2::Geometry
- 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
-
#geometries ⇒ Array<Object>
The list of geometries in this geometry collection.
-
#geometry ⇒ Object
Corresponds to the JSON property
geometry
. -
#type ⇒ String
Type: A collection of geometries.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Geometry
constructor
A new instance of Geometry.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#geometries ⇒ Array<Object>
The list of geometries in this geometry collection.
Corresponds to the JSON property geometries
262 263 264 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 262 def geometries @geometries end |
#geometry ⇒ Object
Corresponds to the JSON property geometry
267 268 269 |
# File 'generated/google/apis/fusiontables_v2/classes.rb', line 267 def geometry @geometry end |
#type ⇒ String
Type: A collection of geometries.
Corresponds to the JSON property type
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 |