Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/places_v1/classes.rb,
lib/google/apis/places_v1/representations.rb,
lib/google/apis/places_v1/representations.rb

Overview

The region to search.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction

Returns a new instance of GoogleMapsPlacesV1SearchNearbyRequestLocationRestriction.



2160
2161
2162
# File 'lib/google/apis/places_v1/classes.rb', line 2160

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

Instance Attribute Details

#circleGoogle::Apis::PlacesV1::GoogleMapsPlacesV1Circle

Circle with a LatLng as center and radius. Corresponds to the JSON property circle



2158
2159
2160
# File 'lib/google/apis/places_v1/classes.rb', line 2158

def circle
  @circle
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2165
2166
2167
# File 'lib/google/apis/places_v1/classes.rb', line 2165

def update!(**args)
  @circle = args[:circle] if args.key?(:circle)
end