Class: Get::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/get/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



23
24
25
# File 'lib/get/configuration.rb', line 23

def adapter
  @adapter
end

#environmentObject

Returns the value of attribute environment.



23
24
25
# File 'lib/get/configuration.rb', line 23

def environment
  @environment
end

Instance Method Details

#development_modeObject



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