Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocation

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

Overview

A geographical point suitable for placing game objects in location-based games.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3SamplePlayableLocation

Returns a new instance of GoogleMapsPlayablelocationsV3SamplePlayableLocation.



344
345
346
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 344

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

Instance Attribute Details

#center_pointGoogle::Apis::PlayablelocationsV3::GoogleTypeLatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property centerPoint



312
313
314
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 312

def center_point
  @center_point
end

#nameString

Required. The name of this playable location. Corresponds to the JSON property name

Returns:

  • (String)


317
318
319
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 317

def name
  @name
end

#place_idString

A place ID Corresponds to the JSON property placeId

Returns:

  • (String)


322
323
324
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 322

def place_id
  @place_id
end

#plus_codeString

A plus code Corresponds to the JSON property plusCode

Returns:

  • (String)


327
328
329
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 327

def plus_code
  @plus_code
end

#snapped_pointGoogle::Apis::PlayablelocationsV3::GoogleTypeLatLng

An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this must conform to the WGS84 standard. Values must be within normalized ranges. Corresponds to the JSON property snappedPoint



335
336
337
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 335

def snapped_point
  @snapped_point
end

#typesArray<String>

A collection of Playable Location Types for this playable location. The first type in the collection is the primary type. Type information might not be available for all playable locations. Corresponds to the JSON property types

Returns:

  • (Array<String>)


342
343
344
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 342

def types
  @types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



349
350
351
352
353
354
355
356
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 349

def update!(**args)
  @center_point = args[:center_point] if args.key?(:center_point)
  @name = args[:name] if args.key?(:name)
  @place_id = args[:place_id] if args.key?(:place_id)
  @plus_code = args[:plus_code] if args.key?(:plus_code)
  @snapped_point = args[:snapped_point] if args.key?(:snapped_point)
  @types = args[:types] if args.key?(:types)
end