Class: Google::Apis::AreainsightsV1::LocationFilter

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

Location filters. Specifies the area of interest for the insight.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LocationFilter

Returns a new instance of LocationFilter.



247
248
249
# File 'lib/google/apis/areainsights_v1/classes.rb', line 247

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#circleGoogle::Apis::AreainsightsV1::Circle

A circle is defined by a center point and radius in meters. Corresponds to the JSON property circle



234
235
236
# File 'lib/google/apis/areainsights_v1/classes.rb', line 234

def circle
  @circle
end

#custom_areaGoogle::Apis::AreainsightsV1::CustomArea

Custom Area. Corresponds to the JSON property customArea



239
240
241
# File 'lib/google/apis/areainsights_v1/classes.rb', line 239

def custom_area
  @custom_area
end

#regionGoogle::Apis::AreainsightsV1::Region

A region is a geographic boundary such as: cities, postal codes, counties, states, etc. Corresponds to the JSON property region



245
246
247
# File 'lib/google/apis/areainsights_v1/classes.rb', line 245

def region
  @region
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



252
253
254
255
256
# File 'lib/google/apis/areainsights_v1/classes.rb', line 252

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