Class: Credential
- Inherits:
-
Object
- Object
- Credential
- Defined in:
- lib/Credential.rb
Instance Attribute Summary collapse
-
#db ⇒ Object
Returns the value of attribute db.
-
#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.
-
#vhost ⇒ Object
Returns the value of attribute vhost.
Instance Method Summary collapse
Instance Attribute Details
#db ⇒ Object
Returns the value of attribute db.
3 4 5 |
# File 'lib/Credential.rb', line 3 def db @db end |
#host ⇒ Object
Returns the value of attribute host.
3 4 5 |
# File 'lib/Credential.rb', line 3 def host @host end |
#password ⇒ Object
Returns the value of attribute password.
3 4 5 |
# File 'lib/Credential.rb', line 3 def password @password end |
#port ⇒ Object
Returns the value of attribute port.
3 4 5 |
# File 'lib/Credential.rb', line 3 def port @port end |
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'lib/Credential.rb', line 3 def username @username end |
#vhost ⇒ Object
Returns the value of attribute vhost.
3 4 5 |
# File 'lib/Credential.rb', line 3 def vhost @vhost end |
Instance Method Details
#to_str ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/Credential.rb', line 4 def to_str p @host p @port p @db p @username p @password p @vhost end |