Class: ActiveMerchant::Shipping::ShipmentPackage
- Defined in:
- lib/active_shipping/shipping/shipment_package.rb
Instance Attribute Summary collapse
-
#currency_code ⇒ Object
readonly
Returns the value of attribute currency_code.
-
#graphic_image ⇒ Object
readonly
Returns the value of attribute graphic_image.
-
#html_image ⇒ Object
readonly
Returns the value of attribute html_image.
-
#label_image_format ⇒ Object
readonly
Returns the value of attribute label_image_format.
-
#service_option_charges ⇒ Object
readonly
Returns the value of attribute service_option_charges.
-
#tracking_number ⇒ Object
readonly
Returns the value of attribute tracking_number.
Instance Method Summary collapse
-
#initialize(tracking_number, label_image_format, graphic_image, html_image, options = {}) ⇒ ShipmentPackage
constructor
A new instance of ShipmentPackage.
Constructor Details
#initialize(tracking_number, label_image_format, graphic_image, html_image, options = {}) ⇒ ShipmentPackage
Returns a new instance of ShipmentPackage.
11 12 13 14 15 16 17 18 |
# File 'lib/active_shipping/shipping/shipment_package.rb', line 11 def initialize(tracking_number, label_image_format, graphic_image, html_image, = {}) @tracking_number = tracking_number @label_image_format = label_image_format @graphic_image = graphic_image @html_image = html_image @service_option_charges = [:service_option_charges] unless [:service_option_charges].blank? @currency_code = [:currency_code] unless [:currency_code] end |
Instance Attribute Details
#currency_code ⇒ Object (readonly)
Returns the value of attribute currency_code.
7 8 9 |
# File 'lib/active_shipping/shipping/shipment_package.rb', line 7 def currency_code @currency_code end |
#graphic_image ⇒ Object (readonly)
Returns the value of attribute graphic_image.
8 9 10 |
# File 'lib/active_shipping/shipping/shipment_package.rb', line 8 def graphic_image @graphic_image end |
#html_image ⇒ Object (readonly)
Returns the value of attribute html_image.
9 10 11 |
# File 'lib/active_shipping/shipping/shipment_package.rb', line 9 def html_image @html_image end |
#label_image_format ⇒ Object (readonly)
Returns the value of attribute label_image_format.
5 6 7 |
# File 'lib/active_shipping/shipping/shipment_package.rb', line 5 def label_image_format @label_image_format end |
#service_option_charges ⇒ Object (readonly)
Returns the value of attribute service_option_charges.
6 7 8 |
# File 'lib/active_shipping/shipping/shipment_package.rb', line 6 def service_option_charges @service_option_charges end |
#tracking_number ⇒ Object (readonly)
Returns the value of attribute tracking_number.
4 5 6 |
# File 'lib/active_shipping/shipping/shipment_package.rb', line 4 def tracking_number @tracking_number end |