Sha256: 5e9ce2cc9a247869093e6ba95ad0df47d49a1d649a53bdfba83e005b2ee18863

Contents?: true

Size: 1.19 KB

Versions: 13

Compression:

Stored size: 1.19 KB

Contents

require_relative '../json_able'
module SmartyStreets
  module USStreet
    # In addition to holding all of the input data for this lookup, this class also will contain
    # the result of the lookup after it comes back from the API.
    #
    # See "https://smartystreets.com/docs/cloud/us-street-api#input-fields"
    #
    # @match:: Must be set to 'strict', 'range', or 'invalid'. Constants for these are in match_type.rb
    class Lookup < JSONAble
      attr_accessor :input_id, :street, :street2, :secondary, :city, :state, :zipcode, :lastline, :addressee, :urbanization,
                    :match, :candidates, :result

      def initialize(street=nil, street2=nil, secondary=nil, city=nil, state=nil, zipcode=nil, lastline=nil,
                     addressee=nil, urbanization=nil, match=nil, candidates=0, input_id=nil)
        @input_id = input_id
        @street = street
        @street2 = street2
        @secondary = secondary
        @city = city
        @state = state
        @zipcode = zipcode
        @lastline = lastline
        @addressee = addressee
        @urbanization = urbanization
        @match = match
        @candidates = candidates
        @result = []
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
smartystreets_ruby_sdk-5.15.0 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.22 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.19 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.18 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.17 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.14 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.13 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-0.0.0 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.11 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.10 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.9 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.8 lib/smartystreets_ruby_sdk/us_street/lookup.rb
smartystreets_ruby_sdk-5.14.7 lib/smartystreets_ruby_sdk/us_street/lookup.rb