Class: Google::Apis::AreainsightsV1::LocationFilter
- Inherits:
-
Object
- Object
- Google::Apis::AreainsightsV1::LocationFilter
- 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
Location filters. Specifies the area of interest for the insight.
Instance Attribute Summary collapse
-
#circle ⇒ Google::Apis::AreainsightsV1::Circle
A circle is defined by a center point and radius in meters.
-
#custom_area ⇒ Google::Apis::AreainsightsV1::CustomArea
Custom Area.
-
#region ⇒ Google::Apis::AreainsightsV1::Region
A region is a geographic boundary such as: cities, postal codes, counties, states, etc.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LocationFilter
constructor
A new instance of LocationFilter.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LocationFilter
Returns a new instance of LocationFilter.
245 246 247 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#circle ⇒ Google::Apis::AreainsightsV1::Circle
A circle is defined by a center point and radius in meters.
Corresponds to the JSON property circle
232 233 234 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 232 def circle @circle end |
#custom_area ⇒ Google::Apis::AreainsightsV1::CustomArea
Custom Area.
Corresponds to the JSON property customArea
237 238 239 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 237 def custom_area @custom_area end |
#region ⇒ Google::Apis::AreainsightsV1::Region
A region is a geographic boundary such as: cities, postal codes, counties,
states, etc.
Corresponds to the JSON property region
243 244 245 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 243 def region @region end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
250 251 252 253 254 |
# File 'lib/google/apis/areainsights_v1/classes.rb', line 250 def update!(**args) @circle = args[:circle] if args.key?(:circle) @custom_area = args[:custom_area] if args.key?(:custom_area) @region = args[:region] if args.key?(:region) end |