Sha256: e41d6eb33359547bfa19d05aa5b686b1ee310c5a24e0f45f0d64b8734bbc7918

Contents?: true

Size: 398 Bytes

Versions: 7

Compression:

Stored size: 398 Bytes

Contents

require 'bodega/shipping_method/base'

module Bodega
  module ShippingMethod
    class UPS < Base
      options :login, :password, :api_key

      protected
      def client
        @client ||= ActiveMerchant::Shipping::UPS.new(
          login: Bodega.config.ups.login,
          password: Bodega.config.ups.password,
          key: Bodega.config.ups.api_key
        )
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bodega-0.4.12 lib/bodega/shipping_method/ups.rb
bodega-0.4.9 lib/bodega/shipping_method/ups.rb
bodega-0.4.4 lib/bodega/shipping_method/ups.rb
bodega-0.4.3 lib/bodega/shipping_method/ups.rb
bodega-0.4.2 lib/bodega/shipping_method/ups.rb
bodega-0.4.1 lib/bodega/shipping_method/ups.rb
bodega-0.4.0 lib/bodega/shipping_method/ups.rb