Class: Google::Apis::PartnersV2::Location
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::Location
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb
Overview
A location with address and geographic coordinates. May optionally contain a detailed (multi-field) version of the address.
Instance Attribute Summary collapse
-
#address ⇒ String
The single string version of the address.
-
#address_line ⇒ Array<String>
The following address lines represent the most specific part of any address.
-
#administrative_area ⇒ String
Top-level administrative subdivision of this country.
-
#dependent_locality ⇒ String
Dependent locality or sublocality.
-
#language_code ⇒ String
Language code of the address.
-
#lat_lng ⇒ Google::Apis::PartnersV2::LatLng
An object representing a latitude/longitude pair.
-
#locality ⇒ String
Generally refers to the city/town portion of an address.
-
#postal_code ⇒ String
Values are frequently alphanumeric.
-
#region_code ⇒ String
CLDR (Common Locale Data Repository) region code .
-
#sorting_code ⇒ String
Use of this code is very country-specific, but will refer to a secondary classification code for sorting mail.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Location
Returns a new instance of Location
1508 1509 1510 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1508 def initialize(**args) update!(**args) end |
Instance Attribute Details
#address ⇒ String
The single string version of the address.
Corresponds to the JSON property address
1454 1455 1456 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1454 def address @address end |
#address_line ⇒ Array<String>
The following address lines represent the most specific part of any
address.
Corresponds to the JSON property addressLine
1460 1461 1462 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1460 def address_line @address_line end |
#administrative_area ⇒ String
Top-level administrative subdivision of this country.
Corresponds to the JSON property administrativeArea
1465 1466 1467 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1465 def administrative_area @administrative_area end |
#dependent_locality ⇒ String
Dependent locality or sublocality. Used for UK dependent localities, or
neighborhoods or boroughs in other locations.
Corresponds to the JSON property dependentLocality
1471 1472 1473 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1471 def dependent_locality @dependent_locality end |
#language_code ⇒ String
Language code of the address. Should be in BCP 47 format.
Corresponds to the JSON property languageCode
1476 1477 1478 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1476 def language_code @language_code end |
#lat_lng ⇒ Google::Apis::PartnersV2::LatLng
An object representing a latitude/longitude pair. This is expressed as a pair
of doubles representing degrees latitude and degrees longitude. Unless
specified otherwise, this must conform to the
WGS84
standard. Values must be within normalized ranges.
Corresponds to the JSON property latLng
1485 1486 1487 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1485 def lat_lng @lat_lng end |
#locality ⇒ String
Generally refers to the city/town portion of an address.
Corresponds to the JSON property locality
1490 1491 1492 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1490 def locality @locality end |
#postal_code ⇒ String
Values are frequently alphanumeric.
Corresponds to the JSON property postalCode
1495 1496 1497 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1495 def postal_code @postal_code end |
#region_code ⇒ String
CLDR (Common Locale Data Repository) region code .
Corresponds to the JSON property regionCode
1500 1501 1502 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1500 def region_code @region_code end |
#sorting_code ⇒ String
Use of this code is very country-specific, but will refer to a secondary
classification code for sorting mail.
Corresponds to the JSON property sortingCode
1506 1507 1508 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1506 def sorting_code @sorting_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 |
# File 'generated/google/apis/partners_v2/classes.rb', line 1513 def update!(**args) @address = args[:address] if args.key?(:address) @address_line = args[:address_line] if args.key?(:address_line) @administrative_area = args[:administrative_area] if args.key?(:administrative_area) @dependent_locality = args[:dependent_locality] if args.key?(:dependent_locality) @language_code = args[:language_code] if args.key?(:language_code) @lat_lng = args[:lat_lng] if args.key?(:lat_lng) @locality = args[:locality] if args.key?(:locality) @postal_code = args[:postal_code] if args.key?(:postal_code) @region_code = args[:region_code] if args.key?(:region_code) @sorting_code = args[:sorting_code] if args.key?(:sorting_code) end |