Sha256: f33e79628898c26fc999d63fe219a1086195503ffb426afd4a53e33807f745c6

Contents?: true

Size: 786 Bytes

Versions: 3

Compression:

Stored size: 786 Bytes

Contents

module ActiveMerchant #:nodoc:
  module Shipping #:nodoc:
    class ShipmentPackage
      attr_reader :tracking_number
      attr_reader :label_image_format
      attr_reader :service_option_charges
      attr_reader :currency_code
      attr_reader :graphic_image
      attr_reader :html_image
      
      def initialize(tracking_number, label_image_format, graphic_image, html_image, options = {})
        @tracking_number = tracking_number
        @label_image_format = label_image_format
        @graphic_image = graphic_image
        @html_image = html_image
        @service_option_charges = options[:service_option_charges] unless options[:service_option_charges].blank?
        @currency_code = options[:currency_code] unless options[:currency_code]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rclements_active_shipping-0.9.15 lib/active_shipping/shipping/shipment_package.rb
rclements_active_shipping-0.9.14 lib/active_shipping/shipping/shipment_package.rb
rclements_active_shipping-0.9.13 lib/active_shipping/shipping/shipment_package.rb