Sha256: 53b32a79b60cd7c2947c08d4745b56f87a8182a48d9fff7ea8c9ace21016f82e

Contents?: true

Size: 555 Bytes

Versions: 5

Compression:

Stored size: 555 Bytes

Contents

module ActiveMerchant
  module Shipping
    class Label
      FEDEX_FORMATS = [
        'COMMON2D',
        'LABEL_DATA_ONLY'
      ]

      FEDEX_IMAGE_TYPES = [
        'DPL',
        'EPL2',
        'PDF',
        'PNG',
        'ZPLII'
      ]

      attr_accessor :format_type
      attr_accessor :image_type
      attr_accessor :image

      def initialize(attrs = {})
        attrs.each do |key, value|
          self.send("#{key}=", value) if self.respond_to?("#{key}=")
        end

        self.image_type ||= 'PNG'
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
active_shipping-0.1.4 lib/active_shipping/shipping/label.rb
active_shipping-0.1.3 lib/active_shipping/shipping/label.rb
active_shipping-0.1.2 lib/active_shipping/shipping/label.rb
active_shipping-0.1.1 lib/active_shipping/shipping/label.rb
active_shipping-0.1.0 lib/active_shipping/shipping/label.rb