Class: DbVcs::Adapters::Postgres::Config

Inherits:
Object
  • Object
show all
Includes:
ConfigAttributes
Defined in:
lib/db_vcs/adapters/postgres.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ConfigAttributes

#assign_attributes

Constructor Details

#initializeConfig

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

#hostObject

Returns the value of attribute host.



9
10
11
# File 'lib/db_vcs/adapters/postgres.rb', line 9

def host
  @host
end

#passwordObject

Returns the value of attribute password.



9
10
11
# File 'lib/db_vcs/adapters/postgres.rb', line 9

def password
  @password
end

#portObject

Returns the value of attribute port.



9
10
11
# File 'lib/db_vcs/adapters/postgres.rb', line 9

def port
  @port
end

#usernameObject

Returns the value of attribute username.



9
10
11
# File 'lib/db_vcs/adapters/postgres.rb', line 9

def username
  @username
end