Sha256: 06c1ffcf51e2878466d14ae9f59ea7b0733027d68554197687992a62b25f89b0
Contents?: true
Size: 672 Bytes
Versions: 27
Compression:
Stored size: 672 Bytes
Contents
module SmartyStreets module USReverseGeo # 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. # # Note: Lookups must have certain required fields set with non-blank values. # These can be found at the URL below. # # See "https://smartystreets.com/docs/cloud/us-reverse-geo-api#http-request-input-fields" class Lookup attr_accessor :latitude, :longitude, :response def initialize(latitude, longitude) @latitude = sprintf('%.8f', latitude) @longitude = sprintf('%.8f', longitude) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems