Class: DbVcs::Adapters::Postgres::Config
- Inherits:
-
Object
- Object
- DbVcs::Adapters::Postgres::Config
- Includes:
- ConfigAttributes
- Defined in:
- lib/db_vcs/adapters/postgres.rb
Instance Attribute Summary collapse
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Methods included from ConfigAttributes
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
11 12 13 14 15 16 |
# File 'lib/db_vcs/adapters/postgres.rb', line 11 def initialize @host = "localhost" @port = "5432" @username = "postgres" @password = nil end |
Instance Attribute Details
#host ⇒ Object
Returns the value of attribute host.
9 10 11 |
# File 'lib/db_vcs/adapters/postgres.rb', line 9 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/db_vcs/adapters/postgres.rb', line 9 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
9 10 11 |
# File 'lib/db_vcs/adapters/postgres.rb', line 9 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
9 10 11 |
# File 'lib/db_vcs/adapters/postgres.rb', line 9 def username @username end |