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.14.18 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.17 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.14 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.13 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-0.0.0 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.11 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.10 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.9 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.8 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.7 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.6 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.5 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.4 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.3 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.1 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.14.0 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.13.0 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.12.1 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.12.0 lib/smartystreets_ruby_sdk/international_street/metadata.rb
smartystreets_ruby_sdk-5.11.2 lib/smartystreets_ruby_sdk/international_street/metadata.rb