Class: DataVerifier::Config
- Inherits:
-
Object
- Object
- DataVerifier::Config
- Defined in:
- lib/data_verifier/config.rb
Instance Attribute Summary collapse
-
#data_identifier ⇒ Object
Returns the value of attribute data_identifier.
-
#db_adapter ⇒ Object
Returns the value of attribute db_adapter.
-
#db_host ⇒ Object
Returns the value of attribute db_host.
-
#db_max_connections ⇒ Object
Returns the value of attribute db_max_connections.
-
#db_name ⇒ Object
Returns the value of attribute db_name.
-
#db_password ⇒ Object
Returns the value of attribute db_password.
-
#db_port ⇒ Object
Returns the value of attribute db_port.
-
#db_user ⇒ Object
Returns the value of attribute db_user.
-
#queries ⇒ Object
Returns the value of attribute queries.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize {|_self| ... } ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/data_verifier/config.rb', line 5 def initialize @db_adapter = nil @db_user = nil @db_password = nil @db_host = nil @db_port = nil @db_name = nil @db_max_connections = 25 @data_identifier = nil @queries = {} yield self if block_given? end |
Instance Attribute Details
#data_identifier ⇒ Object
Returns the value of attribute data_identifier.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def data_identifier @data_identifier end |
#db_adapter ⇒ Object
Returns the value of attribute db_adapter.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def db_adapter @db_adapter end |
#db_host ⇒ Object
Returns the value of attribute db_host.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def db_host @db_host end |
#db_max_connections ⇒ Object
Returns the value of attribute db_max_connections.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def db_max_connections @db_max_connections end |
#db_name ⇒ Object
Returns the value of attribute db_name.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def db_name @db_name end |
#db_password ⇒ Object
Returns the value of attribute db_password.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def db_password @db_password end |
#db_port ⇒ Object
Returns the value of attribute db_port.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def db_port @db_port end |
#db_user ⇒ Object
Returns the value of attribute db_user.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def db_user @db_user end |
#queries ⇒ Object
Returns the value of attribute queries.
3 4 5 |
# File 'lib/data_verifier/config.rb', line 3 def queries @queries end |