Class: PurolatorRuby::ValidateCityPostalCodeZipResponse

Inherits:
PurolatorResponse show all
Defined in:
lib/purolator_ruby/validate_city_postal_code_zip_response.rb

Instance Attribute Summary

Attributes inherited from PurolatorResponse

#response

Instance Method Summary collapse

Methods inherited from PurolatorResponse

#errors, #initialize, #status

Constructor Details

This class inherits a constructor from PurolatorRuby::PurolatorResponse

Instance Method Details

#response_keyObject



4
5
6
# File 'lib/purolator_ruby/validate_city_postal_code_zip_response.rb', line 4

def response_key
  :validate_city_postal_code_zip_response
end

#valid?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/purolator_ruby/validate_city_postal_code_zip_response.rb', line 8

def valid?
  !errors
end