Class: Get::Config
- Inherits:
-
Object
- Object
- Get::Config
- Defined in:
- lib/get/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#environment ⇒ Object
Returns the value of attribute environment.
Instance Method Summary collapse
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
23 24 25 |
# File 'lib/get/configuration.rb', line 23 def adapter @adapter end |
#environment ⇒ Object
Returns the value of attribute environment.
23 24 25 |
# File 'lib/get/configuration.rb', line 23 def environment @environment end |
Instance Method Details
#development_mode ⇒ Object
30 31 32 |
# File 'lib/get/configuration.rb', line 30 def development_mode Horza.configure { |config| config.development_mode = true } end |
#set_adapter(adapter) ⇒ Object
25 26 27 28 |
# File 'lib/get/configuration.rb', line 25 def set_adapter(adapter) Horza.configure { |config| config.adapter = adapter } @adapter = Horza.adapter end |