class Fedex::Credentials
Attributes
account_number[R]
key[R]
meter[R]
mode[R]
password[R]
Public Class Methods
new(options={})
click to toggle source
In order to use Fedex
rates API you must first apply for a developer(and later production keys), Visit {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
# File lib/fedex/credentials.rb, line 17 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