Class: DataVerifier::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/data_verifier/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Config

Returns a new instance of Config.

Yields:

  • (_self)

Yield Parameters:



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_identifierObject

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_adapterObject

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_hostObject

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_connectionsObject

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_nameObject

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_passwordObject

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_portObject

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_userObject

Returns the value of attribute db_user.



3
4
5
# File 'lib/data_verifier/config.rb', line 3

def db_user
  @db_user
end

#queriesObject

Returns the value of attribute queries.



3
4
5
# File 'lib/data_verifier/config.rb', line 3

def queries
  @queries
end