Method: ActiveShipping::Response#initialize
- Defined in:
- lib/active_shipping/response.rb
#initialize(success, message, params = {}, options = {}) ⇒ Response
Returns a new instance of Response.
21 22 23 24 25 26 27 |
# File 'lib/active_shipping/response.rb', line 21 def initialize(success, , params = {}, = {}) @success, @message, @params = success, , params.stringify_keys @test = [:test] || false @xml = [:xml] @request = [:request] raise ResponseError.new(self) unless success end |