Class: Google::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1ValidateAddressResponse

Inherits:
Object
  • Object
show all
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 response to an address validation request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleMapsAddressvalidationV1ValidateAddressResponse

Returns a new instance of GoogleMapsAddressvalidationV1ValidateAddressResponse.



957
958
959
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 957

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#response_idString

The UUID that identifies this response. If the address needs to be re- validated, this UUID must accompany the new request. Corresponds to the JSON property responseId

Returns:

  • (String)


950
951
952
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 950

def response_id
  @response_id
end

#resultGoogle::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1ValidationResult

The result of validating an address. Corresponds to the JSON property result



955
956
957
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 955

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



962
963
964
965
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 962

def update!(**args)
  @response_id = args[:response_id] if args.key?(:response_id)
  @result = args[:result] if args.key?(:result)
end