Class: RemoteDb::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



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

def adapter
  @adapter
end

#databaseObject

Returns the value of attribute database.



8
9
10
# File 'lib/remote_db/configuration.rb', line 8

def database
  @database
end

#hostObject

Returns the value of attribute host.



5
6
7
# File 'lib/remote_db/configuration.rb', line 5

def host
  @host
end

#passwordObject

Returns the value of attribute password.



7
8
9
# File 'lib/remote_db/configuration.rb', line 7

def password
  @password
end

#poolObject

Returns the value of attribute pool.



4
5
6
# File 'lib/remote_db/configuration.rb', line 4

def pool
  @pool
end

#usernameObject

Returns the value of attribute username.



6
7
8
# File 'lib/remote_db/configuration.rb', line 6

def username
  @username
end

Instance Method Details

#connection_specObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/remote_db/configuration.rb', line 10

def connection_spec
  {
    adapter:   adapter ,
    pool:      pool,
    host:      host,
    username:  username,
    password:  password,
    database:  database
  }
end