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.



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

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)


947
948
949
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 947

def response_id
  @response_id
end

#resultGoogle::Apis::AddressvalidationV1::GoogleMapsAddressvalidationV1ValidationResult

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



952
953
954
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 952

def result
  @result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



959
960
961
962
# File 'lib/google/apis/addressvalidation_v1/classes.rb', line 959

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