Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea
- 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
Area information and the area's relationship with the target location. Areas includes precise sublocality, neighborhoods, and large compounds that are useful for describing a location.
Instance Attribute Summary collapse
-
#containment ⇒ String
Defines the spatial relationship between the target location and the area.
-
#display_name ⇒ Google::Apis::PlacesV1::GoogleTypeLocalizedText
Localized variant of a text in a particular language.
-
#name ⇒ String
The area's resource name.
-
#place_id ⇒ String
The area's place id.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1AddressDescriptorArea
constructor
A new instance of GoogleMapsPlacesV1AddressDescriptorArea.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1AddressDescriptorArea
Returns a new instance of GoogleMapsPlacesV1AddressDescriptorArea.
126 127 128 |
# File 'lib/google/apis/places_v1/classes.rb', line 126 def initialize(**args) update!(**args) end |
Instance Attribute Details
#containment ⇒ String
Defines the spatial relationship between the target location and the area.
Corresponds to the JSON property containment
109 110 111 |
# File 'lib/google/apis/places_v1/classes.rb', line 109 def containment @containment end |
#display_name ⇒ Google::Apis::PlacesV1::GoogleTypeLocalizedText
Localized variant of a text in a particular language.
Corresponds to the JSON property displayName
114 115 116 |
# File 'lib/google/apis/places_v1/classes.rb', line 114 def display_name @display_name end |
#name ⇒ String
The area's resource name.
Corresponds to the JSON property name
119 120 121 |
# File 'lib/google/apis/places_v1/classes.rb', line 119 def name @name end |
#place_id ⇒ String
The area's place id.
Corresponds to the JSON property placeId
124 125 126 |
# File 'lib/google/apis/places_v1/classes.rb', line 124 def place_id @place_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
131 132 133 134 135 136 |
# File 'lib/google/apis/places_v1/classes.rb', line 131 def update!(**args) @containment = args[:containment] if args.key?(:containment) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @place_id = args[:place_id] if args.key?(:place_id) end |