module SmartyStreets

Constants

VERSION

Attributes

configuration[RW]

Public Class Methods

configure() { |configuration| ... } click to toggle source

Call this method to set your configuration.

SmartyStreets.configure do |config|
  config.auth_id = 'AUTHID'
  config.auth_token = 'AUTHTOKEN'
  config.candidates = 1
end
# File lib/smarty_streets.rb, line 20
def configure
  self.configuration = Configuration.new
  yield(configuration)
end
standardize() { |location| ... } click to toggle source

Request standardization for an address

# File lib/smarty_streets.rb, line 26
def standardize
  location = Location.new
  yield(location)
  Request.new(location).standardize!
end