Sha256: b71d6671041f1d5e7223ea5f8171e0d3b1efab48bc9d77a33745f2bbda661969

Contents?: true

Size: 482 Bytes

Versions: 72

Compression:

Stored size: 482 Bytes

Contents

module SmartyStreets
  module USZipcode
    # See "https://smartystreets.com/docs/cloud/us-zipcode-api#zipcodes"
    class AlternateCounty
      attr_reader :state_abbreviation, :state, :county_name, :county_fips

      def initialize(obj)
        @county_fips = obj.fetch('county_fips', nil)
        @county_name = obj.fetch('county_name', nil)
        @state_abbreviation = obj.fetch('state_abbreviation', nil)
        @state = obj.fetch('state', nil)
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
smartystreets_ruby_sdk-5.3.1 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-5.3.0 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-5.2.2 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-5.2.1 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-5.2.0 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-5.1.1 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-5.1.0 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-5.0.0 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-4.2.0 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-4.1.3 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-4.0.1 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb
smartystreets_ruby_sdk-4.0.0 lib/smartystreets_ruby_sdk/us_zipcode/alternate_county.rb