Class: Fedex::Credentials
- Inherits:
-
Object
- Object
- Fedex::Credentials
- Includes:
- Helpers
- Defined in:
- lib/fedex/credentials.rb
Instance Attribute Summary collapse
-
#account_number ⇒ Object
readonly
Returns the value of attribute account_number.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#meter ⇒ Object
readonly
Returns the value of attribute meter.
-
#mode ⇒ Object
readonly
Returns the value of attribute mode.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Credentials
constructor
In order to use Fedex rates API you must first apply for a developer(and later production keys), Visit / Fedex Developer Center for more information about how to obtain your keys.
Constructor Details
#initialize(options = {}) ⇒ Credentials
In order to use Fedex rates API you must first apply for a developer(and later production keys), Visit / Fedex Developer Center for more information about how to obtain your keys. return a Fedex::Credentials object
17 18 19 20 21 22 23 24 |
# File 'lib/fedex/credentials.rb', line 17 def initialize(={}) requires!(, :key, :password, :account_number, :meter, :mode) @key = [:key] @password = [:password] @account_number = [:account_number] @meter = [:meter] @mode = [:mode] end |
Instance Attribute Details
#account_number ⇒ Object (readonly)
Returns the value of attribute account_number.
6 7 8 |
# File 'lib/fedex/credentials.rb', line 6 def account_number @account_number end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
6 7 8 |
# File 'lib/fedex/credentials.rb', line 6 def key @key end |
#meter ⇒ Object (readonly)
Returns the value of attribute meter.
6 7 8 |
# File 'lib/fedex/credentials.rb', line 6 def meter @meter end |
#mode ⇒ Object (readonly)
Returns the value of attribute mode.
6 7 8 |
# File 'lib/fedex/credentials.rb', line 6 def mode @mode end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'lib/fedex/credentials.rb', line 6 def password @password end |