Class: ActiveMerchant::Shipping::ShipmentAcceptResponse

Inherits:
Response show all
Defined in:
lib/active_shipping/shipping/shipment_accept_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 = {}) ⇒ ShipmentAcceptResponse

Returns a new instance of ShipmentAcceptResponse.



15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 15

def initialize(success, message, params = {}, options = {})
  @shipment_packages = []
  @identification_number = options[:identification_number]
  @shipment_charges = options[:shipment_charges]
  @currency_code = options[:currency_code]
  @billing_weight = options[:billing_weight]
  @weight_unit = options[:weight_unit]
  unless options[:high_value_report_image].blank?
    @high_value_report_image = options[:high_value_report_image]
    @high_value_report_image_format = options[:high_value_report_image_format] || "HTML"
  end
  options[:shipment_packages].each{ |package| @shipment_packages << package }
  super
end

Instance Attribute Details

#billing_weightObject (readonly)

Returns the value of attribute billing_weight.



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

def billing_weight
  @billing_weight
end

#currency_codeObject (readonly)

Returns the value of attribute currency_code.



10
11
12
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 10

def currency_code
  @currency_code
end

#high_value_report_imageObject (readonly)

Returns the value of attribute high_value_report_image.



12
13
14
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 12

def high_value_report_image
  @high_value_report_image
end

#high_value_report_image_formatObject (readonly)

Returns the value of attribute high_value_report_image_format.



13
14
15
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 13

def high_value_report_image_format
  @high_value_report_image_format
end

#identification_numberObject (readonly)

Returns the value of attribute identification_number.



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

def identification_number
  @identification_number
end

#shipment_chargesObject (readonly)

Returns the value of attribute shipment_charges.



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

def shipment_charges
  @shipment_charges
end

#shipment_packagesObject (readonly)

Returns the value of attribute shipment_packages.



11
12
13
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 11

def shipment_packages
  @shipment_packages
end

#weight_unitObject (readonly)

Returns the value of attribute weight_unit.



9
10
11
# File 'lib/active_shipping/shipping/shipment_accept_response.rb', line 9

def weight_unit
  @weight_unit
end