Module: PostcodeAnywhere::CleansePlus::Interactive

Includes:
Utils
Included in:
Client
Defined in:
lib/postcode_anywhere/cleanse_plus/interactive.rb

Constant Summary collapse

API_VERSION =
'1.00'
CLEANSE_ADDRESS_ENDPOINT =
"CleansePlus/Interactive/Cleanse/v#{API_VERSION}/json.ws"

Instance Method Summary collapse

Methods included from Utils

#perform_with_object, #perform_with_objects

Instance Method Details

#address_candidates_for(address, options = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/postcode_anywhere/cleanse_plus/interactive.rb', line 13

def address_candidates_for(address, options = {})
  options.merge!('Address' => address)
  perform_with_objects(
    :get,
    CLEANSE_ADDRESS_ENDPOINT,
    options,
    PostcodeAnywhere::CleansePlus::CleansedAddress
  )
end