Class: Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleFilter
- Inherits:
-
Object
- Object
- Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleFilter
- 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
Specifies the filters to use when searching for playable locations.
Instance Attribute Summary collapse
-
#included_types ⇒ Array<String>
Restricts the set of playable locations to just the types that you want.
-
#max_location_count ⇒ Fixnum
Specifies the maximum number of playable locations to return.
-
#spacing ⇒ Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleSpacingOptions
A set of options that specifies the separation between playable locations.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3SampleFilter
constructor
A new instance of GoogleMapsPlayablelocationsV3SampleFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlayablelocationsV3SampleFilter
Returns a new instance of GoogleMapsPlayablelocationsV3SampleFilter.
290 291 292 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 290 def initialize(**args) update!(**args) end |
Instance Attribute Details
#included_types ⇒ Array<String>
Restricts the set of playable locations to just the types that you want.
Corresponds to the JSON property includedTypes
276 277 278 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 276 def included_types @included_types end |
#max_location_count ⇒ Fixnum
Specifies the maximum number of playable locations to return. This value must
not be greater than 1000. The default value is 100. Only the top-ranking
playable locations are returned.
Corresponds to the JSON property maxLocationCount
283 284 285 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 283 def max_location_count @max_location_count end |
#spacing ⇒ Google::Apis::PlayablelocationsV3::GoogleMapsPlayablelocationsV3SampleSpacingOptions
A set of options that specifies the separation between playable locations.
Corresponds to the JSON property spacing
288 289 290 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 288 def spacing @spacing end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
295 296 297 298 299 |
# File 'generated/google/apis/playablelocations_v3/classes.rb', line 295 def update!(**args) @included_types = args[:included_types] if args.key?(:included_types) @max_location_count = args[:max_location_count] if args.key?(:max_location_count) @spacing = args[:spacing] if args.key?(:spacing) end |