Class: EasyPost::Address

Inherits:
Object
  • Object
show all
Defined in:
lib/easypost/address.rb

Constant Summary collapse

@@type =
"address"

Class Method Summary collapse

Class Method Details

.testObject



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

def self.test
  puts EasyPost.api_url("verify")
end

.verify(address = {}) ⇒ Object



9
10
11
# File 'lib/easypost/address.rb', line 9

def self.verify(address={})
  @verified_address = EasyPost.get(EasyPost.api_url(:type => @@type, :action => "verify"), :address => address)
end