Class: ActiveMerchant::Shipping::VoidShipmentResponse

Inherits:
Response show all
Defined in:
lib/active_shipping/shipping/void_shipment_response.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#message, #params, #request, #test, #xml

Instance Method Summary collapse

Methods inherited from Response

#success?, #test?

Constructor Details

#initialize(success, message, params = {}, options = {}) ⇒ VoidShipmentResponse

Returns a new instance of VoidShipmentResponse.



10
11
12
13
14
15
16
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 10

def initialize(success, message, params = {}, options = {})
  @package_level_results = []
  @status_type = options[:status_type]
  @status_code = options[:status_code]
  options[:package_level_results].each{ |result| @package_level_results << result } unless options[:package_level_results].blank?
  super
end

Instance Attribute Details

#package_level_resultsObject (readonly)

Returns the value of attribute package_level_results.



8
9
10
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 8

def package_level_results
  @package_level_results
end

#status_codeObject (readonly)

Returns the value of attribute status_code.



6
7
8
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 6

def status_code
  @status_code
end

#status_typeObject (readonly)

Returns the value of attribute status_type.



7
8
9
# File 'lib/active_shipping/shipping/void_shipment_response.rb', line 7

def status_type
  @status_type
end