Class: Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent
- Inherits:
-
Object
- Object
- Google::Apis::PlacesV1::GoogleMapsPlacesV1PlaceAddressComponent
- 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 structured components that form the formatted address, if this information is available.
Instance Attribute Summary collapse
-
#language_code ⇒ String
The language used to format this components, in CLDR notation.
-
#long_text ⇒ String
The full text description or name of the address component.
-
#short_text ⇒ String
An abbreviated textual name for the address component, if available.
-
#types ⇒ Array<String>
An array indicating the type(s) of the address component.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceAddressComponent
constructor
A new instance of GoogleMapsPlacesV1PlaceAddressComponent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsPlacesV1PlaceAddressComponent
Returns a new instance of GoogleMapsPlacesV1PlaceAddressComponent.
1717 1718 1719 |
# File 'lib/google/apis/places_v1/classes.rb', line 1717 def initialize(**args) update!(**args) end |
Instance Attribute Details
#language_code ⇒ String
The language used to format this components, in CLDR notation.
Corresponds to the JSON property languageCode
1696 1697 1698 |
# File 'lib/google/apis/places_v1/classes.rb', line 1696 def language_code @language_code end |
#long_text ⇒ String
The full text description or name of the address component. For example, an
address component for the country Australia may have a long_name of "Australia"
.
Corresponds to the JSON property longText
1703 1704 1705 |
# File 'lib/google/apis/places_v1/classes.rb', line 1703 def long_text @long_text end |
#short_text ⇒ String
An abbreviated textual name for the address component, if available. For
example, an address component for the country of Australia may have a
short_name of "AU".
Corresponds to the JSON property shortText
1710 1711 1712 |
# File 'lib/google/apis/places_v1/classes.rb', line 1710 def short_text @short_text end |
#types ⇒ Array<String>
An array indicating the type(s) of the address component.
Corresponds to the JSON property types
1715 1716 1717 |
# File 'lib/google/apis/places_v1/classes.rb', line 1715 def types @types end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1722 1723 1724 1725 1726 1727 |
# File 'lib/google/apis/places_v1/classes.rb', line 1722 def update!(**args) @language_code = args[:language_code] if args.key?(:language_code) @long_text = args[:long_text] if args.key?(:long_text) @short_text = args[:short_text] if args.key?(:short_text) @types = args[:types] if args.key?(:types) end |