Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocation
- Inherits:
-
Object
- Object
- Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocation
- 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
-
#center_point ⇒ Google::Apis::PlayablelocationsV3::GoogleTypeLatLng
An object that represents a latitude/longitude pair.
-
#name ⇒ String
Required.
-
#place_id ⇒ String
A place ID Corresponds to the JSON property
placeId
. -
#plus_code ⇒ String
A plus code Corresponds to the JSON property
plusCode
. -
#snapped_point ⇒ Google::Apis::PlayablelocationsV3::GoogleTypeLatLng
An object that represents a latitude/longitude pair.
-
#types ⇒ Array<String>
A collection of Playable Location Types for this playable location.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3SamplePlayableLocation
constructor
A new instance of GoogleMapsPlayablelocationsV3SamplePlayableLocation.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_point ⇒ Google::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 |
#name ⇒ String
Required. The name of this playable location.
Corresponds to the JSON property name
317 318 319 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 317 def name @name end |
#place_id ⇒ String
A place ID
Corresponds to the JSON property placeId
322 323 324 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 322 def place_id @place_id end |
#plus_code ⇒ String
A plus code
Corresponds to the JSON property plusCode
327 328 329 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 327 def plus_code @plus_code end |
#snapped_point ⇒ Google::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 |
#types ⇒ Array<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
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 |