Class: Qrfy::Configuration
- Inherits:
-
Object
- Object
- Qrfy::Configuration
- Defined in:
- lib/qrfy/configuration.rb
Overview
# Configuration
A way to store connection configuration such as api_key or http adapter.
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
12 13 14 15 |
# File 'lib/qrfy/configuration.rb', line 12 def initialize @api_key = nil @adapter = nil end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
10 11 12 |
# File 'lib/qrfy/configuration.rb', line 10 def adapter @adapter end |
#api_key ⇒ Object
Returns the value of attribute api_key.
10 11 12 |
# File 'lib/qrfy/configuration.rb', line 10 def api_key @api_key end |