Class: DIDWW::Configuration
- Inherits:
-
Object
- Object
- DIDWW::Configuration
- Defined in:
- lib/DIDWW/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#api_username ⇒ Object
Returns the value of attribute api_username.
-
#sandbox ⇒ Object
Returns the value of attribute sandbox.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(params = {}) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/DIDWW/configuration.rb', line 5 def initialize(params = {}) @api_username = params[:api_username] @api_key = params[:api_key] @sandbox = params[:sandbox] || true end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
3 4 5 |
# File 'lib/DIDWW/configuration.rb', line 3 def api_key @api_key end |
#api_username ⇒ Object
Returns the value of attribute api_username.
3 4 5 |
# File 'lib/DIDWW/configuration.rb', line 3 def api_username @api_username end |
#sandbox ⇒ Object
Returns the value of attribute sandbox.
3 4 5 |
# File 'lib/DIDWW/configuration.rb', line 3 def sandbox @sandbox end |