Class: Credential

Inherits:
Object
  • Object
show all
Defined in:
lib/Credential.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dbObject

Returns the value of attribute db.



3
4
5
# File 'lib/Credential.rb', line 3

def db
  @db
end

#hostObject

Returns the value of attribute host.



3
4
5
# File 'lib/Credential.rb', line 3

def host
  @host
end

#passwordObject

Returns the value of attribute password.



3
4
5
# File 'lib/Credential.rb', line 3

def password
  @password
end

#portObject

Returns the value of attribute port.



3
4
5
# File 'lib/Credential.rb', line 3

def port
  @port
end

#usernameObject

Returns the value of attribute username.



3
4
5
# File 'lib/Credential.rb', line 3

def username
  @username
end

#vhostObject

Returns the value of attribute vhost.



3
4
5
# File 'lib/Credential.rb', line 3

def vhost
  @vhost
end

Instance Method Details

#to_strObject



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