Class: ActiveQuery::Configuration
- Inherits:
-
Object
- Object
- ActiveQuery::Configuration
- Defined in:
- lib/active_query/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#template_path ⇒ Object
Returns the value of attribute template_path.
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}, &block) ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 10 11 |
# File 'lib/active_query/configuration.rb', line 5 def initialize( = {}, &block) @template_path = "" @adapter = "" @connection = "" .each { |k,v| send("#{k}=", v) } instance_eval(&block) if block_given? end |
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
3 4 5 |
# File 'lib/active_query/configuration.rb', line 3 def adapter @adapter end |
#connection ⇒ Object
Returns the value of attribute connection.
3 4 5 |
# File 'lib/active_query/configuration.rb', line 3 def connection @connection end |
#template_path ⇒ Object
Returns the value of attribute template_path.
3 4 5 |
# File 'lib/active_query/configuration.rb', line 3 def template_path @template_path end |