Class: Google::Apis::AreainsightsV1::RatingFilter
- Inherits:
-
Object
- Object
- Google::Apis::AreainsightsV1::RatingFilter
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/areainsights_v1/classes.rb,
lib/google/apis/areainsights_v1/representations.rb,
lib/google/apis/areainsights_v1/representations.rb
Overview
Average user rating filters.
Instance Attribute Summary collapse
-
#max_rating ⇒ Float
Optional.
-
#min_rating ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RatingFilter
constructor
A new instance of RatingFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RatingFilter
Returns a new instance of RatingFilter.
317 318 319 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 317 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_rating ⇒ Float
Optional. Restricts results to places whose average user rating is strictly
less than or equal to max_rating. Values must be between 1.0 and 5.0.
Corresponds to the JSON property maxRating
309 310 311 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 309 def @max_rating end |
#min_rating ⇒ Float
Optional. Restricts results to places whose average user rating is greater
than or equal to min_rating. Values must be between 1.0 and 5.0.
Corresponds to the JSON property minRating
315 316 317 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 315 def @min_rating end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
322 323 324 325 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 322 def update!(**args) @max_rating = args[:max_rating] if args.key?(:max_rating) @min_rating = args[:min_rating] if args.key?(:min_rating) end |