Sha256: d3f6c93faa73a24ffd2871e7f200bba15f37bcf353932b9e85cf950e12dba978
Contents?: true
Size: 755 Bytes
Versions: 17
Compression:
Stored size: 755 Bytes
Contents
module ActiveShipping # Response object class for calls to {ActiveShipping::Carrier#validate_address}. # # @!attribute location # The Location to be validated # @return [String] class AddressValidationResponse < Response attr_reader :validity, :classification, :candidate_addresses, :options, :params def initialize(success, message, params = {}, options = {}) @validity = options[:validity] @candidate_addresses = options[:candidate_addresses] @classification = options[:classification] super end def address_match? @validity == :valid end def residential? @classification == :residential end def commercial? @classification == :commercial end end end
Version data entries
17 entries across 17 versions & 1 rubygems