Class: Postmaster::AddressValidation
- Inherits:
-
APIResource
- Object
- PostmasterObject
- APIResource
- Postmaster::AddressValidation
- Defined in:
- lib/postmaster/address.rb
Class Method Summary collapse
Methods inherited from APIResource
class_name, #refresh, retrieve, url, #url
Methods inherited from PostmasterObject
#[], #[]=, construct_from, #delete, #each, #has_key?, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values
Constructor Details
This class inherits a constructor from Postmaster::PostmasterObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Postmaster::PostmasterObject
Class Method Details
.validate(params = {}) ⇒ Object
11 12 13 14 15 |
# File 'lib/postmaster/address.rb', line 11 def self.validate(params={}) Util.normalize_address(params) response = Postmaster.request(:post, '/v1/validate', params) self.construct_from(response) end |