Sha256: 4735f27ff2af5b9019272746da9901886373f99d30789497b7ffbb17d480b706

Contents?: true

Size: 602 Bytes

Versions: 67

Compression:

Stored size: 602 Bytes

Contents

module SmartyStreets
  module InternationalStreet
    # See "https://smartystreets.com/docs/cloud/international-street-api#metadata"
    class Metadata

      attr_reader :longitude, :geocode_precision, :max_geocode_precision, :latitude, :address_format

      def initialize(obj)
        @latitude = obj.fetch('latitude', nil)
        @longitude = obj.fetch('longitude', nil)
        @geocode_precision = obj.fetch('geocode_precision', nil)
        @max_geocode_precision = obj.fetch('max_geocode_precision', nil)
        @address_format = obj.fetch('address_format', nil)
      end
    end
  end
end

Version data entries

67 entries across 67 versions & 1 rubygems

Version Path
smartystreets_ruby_sdk-5.3.1 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.3.0 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.2.2 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.2.1 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.2.0 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-4.2.0 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-4.1.3 lib/smartystreets_ruby_sdk/international_street/metadata.rb