Class: Pgai::Config::Clone
- Inherits:
-
Struct
- Object
- Struct
- Pgai::Config::Clone
- Defined in:
- lib/pgai/config.rb
Instance Attribute Summary collapse
-
#dbname ⇒ Object
Returns the value of attribute dbname.
-
#host ⇒ Object
Returns the value of attribute host.
-
#password ⇒ Object
Returns the value of attribute password.
-
#port ⇒ Object
Returns the value of attribute port.
-
#user ⇒ Object
Returns the value of attribute user.
Instance Method Summary collapse
Instance Attribute Details
#dbname ⇒ Object
Returns the value of attribute dbname
9 10 11 |
# File 'lib/pgai/config.rb', line 9 def dbname @dbname end |
#host ⇒ Object
Returns the value of attribute host
9 10 11 |
# File 'lib/pgai/config.rb', line 9 def host @host end |
#password ⇒ Object
Returns the value of attribute password
9 10 11 |
# File 'lib/pgai/config.rb', line 9 def password @password end |
#port ⇒ Object
Returns the value of attribute port
9 10 11 |
# File 'lib/pgai/config.rb', line 9 def port @port end |
#user ⇒ Object
Returns the value of attribute user
9 10 11 |
# File 'lib/pgai/config.rb', line 9 def user @user end |
Instance Method Details
#connection_string ⇒ Object
10 11 12 |
# File 'lib/pgai/config.rb', line 10 def connection_string "'host=#{host} port=#{port} user=#{user} dbname=#{dbname} password=#{password}'" end |