Class: Pione::Util::FTPAuthInfo
- Inherits:
-
Object
- Object
- Pione::Util::FTPAuthInfo
- Defined in:
- lib/pione/util/ftp-server.rb
Overview
FTPAuthInfo is a class for FTP authentication information.
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user = nil, password = nil) ⇒ FTPAuthInfo
constructor
A new instance of FTPAuthInfo.
- #to_userinfo ⇒ Object
Constructor Details
Instance Attribute Details
#password ⇒ Object (readonly)
Returns the value of attribute password.
6 7 8 |
# File 'lib/pione/util/ftp-server.rb', line 6 def password @password end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
5 6 7 |
# File 'lib/pione/util/ftp-server.rb', line 5 def user @user end |
Instance Method Details
#to_userinfo ⇒ Object
13 14 15 |
# File 'lib/pione/util/ftp-server.rb', line 13 def to_userinfo "%s:%s" % [@user, @password] end |