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.



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

def database
  @database
end

#environmentObject

Returns the value of attribute environment.



10
11
12
# File 'lib/remote_db/configuration.rb', line 10

def environment
  @environment
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#passwordObject

Returns the value of attribute password.



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

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

#portObject

Returns the value of attribute port.



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

def port
  @port
end

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

#connection_specObject



12
13
14
15
16
17
18
19
20
21
22
# File 'lib/remote_db/configuration.rb', line 12

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