Class: Google::Apis::AreainsightsV1::RatingFilter

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_ratingFloat

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

Returns:

  • (Float)


309
310
311
# File 'lib/google/apis/areainsights_v1/classes.rb', line 309

def max_rating
  @max_rating
end

#min_ratingFloat

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

Returns:

  • (Float)


315
316
317
# File 'lib/google/apis/areainsights_v1/classes.rb', line 315

def min_rating
  @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