Sha256: a277e6c34e5046686dac22badb1d1c1c2abf1d2e409156149dfbdb37b4a025d8

Contents?: true

Size: 973 Bytes

Versions: 18

Compression:

Stored size: 973 Bytes

Contents

require 'fedex/helpers'

module Fedex
  class Credentials
    include Helpers
    attr_reader :key, :password, :account_number, :meter, :mode

    # In order to use Fedex rates API you must first apply for a developer(and later production keys),
    # Visit {http://www.fedex.com/us/developer/ Fedex Developer Center} for more information about how to obtain your keys.
    # @param [String] key - Fedex web service key
    # @param [String] password - Fedex password
    # @param [String] account_number - Fedex account_number
    # @param [String] meter - Fedex meter number
    # @param [String] mode - [development/production]
    #
    # return a Fedex::Credentials object
    def initialize(options={})
      requires!(options, :key, :password, :account_number, :meter, :mode)
      @key = options[:key]
      @password = options[:password]
      @account_number = options[:account_number]
      @meter = options[:meter]
      @mode = options[:mode]
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
fedex-3.10.11 lib/fedex/credentials.rb
fedex-3.10.1 lib/fedex/credentials.rb
fedex-3.10.0 lib/fedex/credentials.rb
fedex-3.9.1 lib/fedex/credentials.rb
fedex-3.9.0 lib/fedex/credentials.rb
fedex-3.8.0 lib/fedex/credentials.rb
fedex-3.6.1 lib/fedex/credentials.rb
fedex-3.6.0 lib/fedex/credentials.rb
fedex-3.4.0 lib/fedex/credentials.rb
fedex-3.3.1 lib/fedex/credentials.rb
fedex-3.3.0 lib/fedex/credentials.rb
fedex-3.1.0 lib/fedex/credentials.rb
fedex-3.0.0 lib/fedex/credentials.rb
fedex-2.2.2 lib/fedex/credentials.rb
ShippingInfo-2.0 lib/fedex/credentials.rb
fedex-2.2.1 lib/fedex/credentials.rb
fedex-2.2.0 lib/fedex/credentials.rb
fedex-2.0.1 lib/fedex/credentials.rb