Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1AddressDescriptorArea

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

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

Instance Method Summary collapse

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

#containmentString

Defines the spatial relationship between the target location and the area. Corresponds to the JSON property containment

Returns:

  • (String)


109
110
111
# File 'lib/google/apis/places_v1/classes.rb', line 109

def containment
  @containment
end

#display_nameGoogle::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

#nameString

The area's resource name. Corresponds to the JSON property name

Returns:

  • (String)


119
120
121
# File 'lib/google/apis/places_v1/classes.rb', line 119

def name
  @name
end

#place_idString

The area's place id. Corresponds to the JSON property placeId

Returns:

  • (String)


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