Class: ActiveQuery::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {}, &block)
  @template_path = ""
  @adapter = ""
  @connection = ""
  options.each { |k,v| send("#{k}=", v) }
  instance_eval(&block) if block_given?
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



3
4
5
# File 'lib/active_query/configuration.rb', line 3

def adapter
  @adapter
end

#connectionObject

Returns the value of attribute connection.



3
4
5
# File 'lib/active_query/configuration.rb', line 3

def connection
  @connection
end

#template_pathObject

Returns the value of attribute template_path.



3
4
5
# File 'lib/active_query/configuration.rb', line 3

def template_path
  @template_path
end