Sha256: 98307f8ed21df8416f37a0d1e7129663fd2cf060ad04ff02f16e98c01139a547

Contents?: true

Size: 1.09 KB

Versions: 7

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module FriendlyShipping
  module Services
    class UpsFreight
      class LabelOptions < RatesOptions
        attr_reader :document_options,
                    :email_options,
                    :pickup_options,
                    :delivery_options,
                    :pickup_instructions,
                    :delivery_instructions,
                    :handling_instructions

        def initialize(
          document_options: [],
          email_options: [],
          pickup_options: nil,
          delivery_options: nil,
          pickup_instructions: nil,
          delivery_instructions: nil,
          handling_instructions: nil,
          **kwargs
        )
          @pickup_options = pickup_options
          @delivery_options = delivery_options
          @document_options = document_options
          @email_options = email_options
          @pickup_instructions = pickup_instructions
          @delivery_instructions = delivery_instructions
          @handling_instructions = handling_instructions
          super kwargs
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
friendly_shipping-0.6.5 lib/friendly_shipping/services/ups_freight/label_options.rb
friendly_shipping-0.6.4 lib/friendly_shipping/services/ups_freight/label_options.rb
friendly_shipping-0.6.3 lib/friendly_shipping/services/ups_freight/label_options.rb
friendly_shipping-0.6.2 lib/friendly_shipping/services/ups_freight/label_options.rb
friendly_shipping-0.6.1 lib/friendly_shipping/services/ups_freight/label_options.rb
friendly_shipping-0.6.0 lib/friendly_shipping/services/ups_freight/label_options.rb
friendly_shipping-0.5.3 lib/friendly_shipping/services/ups_freight/label_options.rb