Class: RemoteDb::Configuration
- Inherits:
-
Object
- Object
- RemoteDb::Configuration
- Defined in:
- lib/remote_db/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
Returns the value of attribute adapter.
-
#database ⇒ Object
Returns the value of attribute database.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#pool ⇒ Object
Returns the value of attribute pool.
-
#port ⇒ Object
Returns the value of attribute port.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
Instance Attribute Details
#adapter ⇒ Object
Returns the value of attribute adapter.
3 4 5 |
# File 'lib/remote_db/configuration.rb', line 3 def adapter @adapter end |
#database ⇒ Object
Returns the value of attribute database.
9 10 11 |
# File 'lib/remote_db/configuration.rb', line 9 def database @database end |
#environment ⇒ Object
Returns the value of attribute environment.
10 11 12 |
# File 'lib/remote_db/configuration.rb', line 10 def environment @environment end |
#host ⇒ Object
Returns the value of attribute host.
6 7 8 |
# File 'lib/remote_db/configuration.rb', line 6 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/remote_db/configuration.rb', line 8 def password @password end |
#pool ⇒ Object
Returns the value of attribute pool.
4 5 6 |
# File 'lib/remote_db/configuration.rb', line 4 def pool @pool end |
#port ⇒ Object
Returns the value of attribute port.
5 6 7 |
# File 'lib/remote_db/configuration.rb', line 5 def port @port end |
#username ⇒ Object
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_spec ⇒ Object
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 |