class AusPostAPI::DCE
The PAC
class implements methods specified by the Australia Post Delivery Choices API. A config hash must be supplied that specifies a valid DCE_AUTH_KEY, and request format. Setting the key TEST to true in the config hash will ignore any supplied auth_key and use the test endpoint.
Public Class Methods
new(config)
click to toggle source
# File lib/aus_post_api/dce.rb, line 7 def initialize(config) @config = config end
Public Instance Methods
validate_australian_address(params = {})
click to toggle source
# File lib/aus_post_api/dce.rb, line 11 def validate_australian_address(params = {}) AusPostAPI::DCE::ValidateAustralianAddress.new(params, @config).execute end