Class: Onfido::Address

Inherits:
Resource show all
Defined in:
lib/onfido/resources/address.rb

Constant Summary

Constants inherited from Resource

Resource::ADDITIONAL_HEADERS, Resource::REQUEST_TIMEOUT_HTTP_CODE, Resource::VALID_HTTP_METHODS

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Onfido::Resource

Instance Method Details

#all(postcode) ⇒ Object



5
6
7
# File 'lib/onfido/resources/address.rb', line 5

def all(postcode)
  get(path: "addresses/pick?postcode=#{postcode.delete(' ')}")
end