class Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationsResponse
Response for the SamplePlayableLocations method.
Attributes
Each PlayableLocation object corresponds to a game_object_type specified in the request. Corresponds to the JSON property `locationsPerGameObjectType` @return [Hash<String,Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SamplePlayableLocationList>]
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` @return [String]
Public Class Methods
# File lib/google/apis/playablelocations_v3/classes.rb, line 436 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/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