Class: Google::Apis::SpectrumV1explorer::VcardAddress
- Inherits:
-
Object
- Object
- Google::Apis::SpectrumV1explorer::VcardAddress
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spectrum_v1explorer/classes.rb,
generated/google/apis/spectrum_v1explorer/representations.rb,
generated/google/apis/spectrum_v1explorer/representations.rb
Overview
The structure used to represent a street address.
Instance Attribute Summary collapse
-
#code ⇒ String
The postal code associated with the address.
-
#country ⇒ String
The country name.
-
#locality ⇒ String
The city or local equivalent portion of the address.
-
#pobox ⇒ String
An optional post office box number.
-
#region ⇒ String
The state or local equivalent portion of the address.
-
#street ⇒ String
The street number and name.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VcardAddress
constructor
A new instance of VcardAddress.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ VcardAddress
Returns a new instance of VcardAddress
1557 1558 1559 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1557 def initialize(**args) update!(**args) end |
Instance Attribute Details
#code ⇒ String
The postal code associated with the address. For example: 94423.
Corresponds to the JSON property code
1530 1531 1532 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1530 def code @code end |
#country ⇒ String
The country name. For example: US.
Corresponds to the JSON property country
1535 1536 1537 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1535 def country @country end |
#locality ⇒ String
The city or local equivalent portion of the address. For example: San Jose.
Corresponds to the JSON property locality
1540 1541 1542 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1540 def locality @locality end |
#pobox ⇒ String
An optional post office box number.
Corresponds to the JSON property pobox
1545 1546 1547 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1545 def pobox @pobox end |
#region ⇒ String
The state or local equivalent portion of the address. For example: CA.
Corresponds to the JSON property region
1550 1551 1552 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1550 def region @region end |
#street ⇒ String
The street number and name. For example: 123 Any St.
Corresponds to the JSON property street
1555 1556 1557 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1555 def street @street end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1562 1563 1564 1565 1566 1567 1568 1569 |
# File 'generated/google/apis/spectrum_v1explorer/classes.rb', line 1562 def update!(**args) @code = args[:code] if args.key?(:code) @country = args[:country] if args.key?(:country) @locality = args[:locality] if args.key?(:locality) @pobox = args[:pobox] if args.key?(:pobox) @region = args[:region] if args.key?(:region) @street = args[:street] if args.key?(:street) end |