Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
- Inherits:
-
Object
- Object
- Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
- 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
Response for the SamplePlayableLocations method.
Instance Attribute Summary collapse
-
#locations_per_game_object_type ⇒ Hash<String,Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationList>
Each PlayableLocation object corresponds to a game_object_type specified in the request.
-
#ttl ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
constructor
A new instance of GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
Returns a new instance of GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse.
436 437 438 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 436 def initialize(**args) update!(**args) end |
Instance Attribute Details
#locations_per_game_object_type ⇒ Hash<String,Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationList>
Each PlayableLocation object corresponds to a game_object_type specified in
the request.
Corresponds to the JSON property locationsPerGameObjectType
424 425 426 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 424 def locations_per_game_object_type @locations_per_game_object_type end |
#ttl ⇒ String
Required. Specifies the "time-to-live" for the set of playable locations. You
can use this value to determine how long to cache the set of playable
locations. After this length of time, your back-end game server should issue a
new SamplePlayableLocations request to get a fresh set of playable locations (
because for example, they might have been removed, a park might have closed
for the day, a business might have closed permanently).
Corresponds to the JSON property ttl
434 435 436 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 434 def ttl @ttl end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
441 442 443 444 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 441 def update!(**args) @locations_per_game_object_type = args[:locations_per_game_object_type] if args.key?(:locations_per_game_object_type) @ttl = args[:ttl] if args.key?(:ttl) end |