Class: Google::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1AddressMetadata
- Inherits:
-
Object
- Object
- Google::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1AddressMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/addressvalidation_v1/classes.rb,
lib/google/apis/addressvalidation_v1/representations.rb,
lib/google/apis/addressvalidation_v1/representations.rb
Overview
The metadata for the address. metadata
is not guaranteed to be fully
populated for every address sent to the Address Validation API.
Instance Attribute Summary collapse
-
#business ⇒ Boolean
(also: #business?)
Indicates that this is the address of a business.
-
#po_box ⇒ Boolean
(also: #po_box?)
Indicates that the address of a PO box.
-
#residential ⇒ Boolean
(also: #residential?)
Indicates that this is the address of a residence.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleMapsAddressvalidationV1AddressMetadata
constructor
A new instance of GoogleMapsAddressvalidationV1AddressMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleMapsAddressvalidationV1AddressMetadata
Returns a new instance of GoogleMapsAddressvalidationV1AddressMetadata.
251 252 253 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 251 def initialize(**args) update!(**args) end |
Instance Attribute Details
#business ⇒ Boolean Also known as: business?
Indicates that this is the address of a business. If unset, indicates that the
value is unknown.
Corresponds to the JSON property business
234 235 236 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 234 def business @business end |
#po_box ⇒ Boolean Also known as: po_box?
Indicates that the address of a PO box. If unset, indicates that the value is
unknown.
Corresponds to the JSON property poBox
241 242 243 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 241 def po_box @po_box end |
#residential ⇒ Boolean Also known as: residential?
Indicates that this is the address of a residence. If unset, indicates that
the value is unknown.
Corresponds to the JSON property residential
248 249 250 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 248 def residential @residential end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
256 257 258 259 260 |
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 256 def update!(**args) @business = args[:business] if args.key?(:business) @po_box = args[:po_box] if args.key?(:po_box) @residential = args[:residential] if args.key?(:residential) end |