Class: Homeflow::API::Configuration
- Inherits:
-
Object
- Object
- Homeflow::API::Configuration
- Defined in:
- lib/homeflow/api.rb
Overview
A configuration instance
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#request_key ⇒ Object
Returns the value of attribute request_key.
-
#show_debug ⇒ Object
Returns the value of attribute show_debug.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
68 69 70 71 72 73 74 |
# File 'lib/homeflow/api.rb', line 68 def initialize @request_key = '' @api_key = 'API_KEY_REQUIRED' @source = 'http://localhost:3000' @show_debug = false @logger = nil end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
66 67 68 |
# File 'lib/homeflow/api.rb', line 66 def api_key @api_key end |
#logger ⇒ Object
Returns the value of attribute logger.
66 67 68 |
# File 'lib/homeflow/api.rb', line 66 def logger @logger end |
#request_key ⇒ Object
Returns the value of attribute request_key.
66 67 68 |
# File 'lib/homeflow/api.rb', line 66 def request_key @request_key end |
#show_debug ⇒ Object
Returns the value of attribute show_debug.
66 67 68 |
# File 'lib/homeflow/api.rb', line 66 def show_debug @show_debug end |
#source ⇒ Object
Returns the value of attribute source.
66 67 68 |
# File 'lib/homeflow/api.rb', line 66 def source @source end |