Class: Pgai::Config::Clone

Inherits:
Struct
  • Object
show all
Defined in:
lib/pgai/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dbnameObject

Returns the value of attribute dbname

Returns:

  • (Object)

    the current value of dbname



9
10
11
# File 'lib/pgai/config.rb', line 9

def dbname
  @dbname
end

#hostObject

Returns the value of attribute host

Returns:

  • (Object)

    the current value of host



9
10
11
# File 'lib/pgai/config.rb', line 9

def host
  @host
end

#passwordObject

Returns the value of attribute password

Returns:

  • (Object)

    the current value of password



9
10
11
# File 'lib/pgai/config.rb', line 9

def password
  @password
end

#portObject

Returns the value of attribute port

Returns:

  • (Object)

    the current value of port



9
10
11
# File 'lib/pgai/config.rb', line 9

def port
  @port
end

#userObject

Returns the value of attribute user

Returns:

  • (Object)

    the current value of user



9
10
11
# File 'lib/pgai/config.rb', line 9

def user
  @user
end

Instance Method Details

#connection_stringObject



10
11
12
# File 'lib/pgai/config.rb', line 10

def connection_string
  "'host=#{host} port=#{port} user=#{user} dbname=#{dbname} password=#{password}'"
end