Class: SFML::Network::Ftp::DirectoryResponse
- Inherits:
-
Object
- Object
- SFML::Network::Ftp::DirectoryResponse
- Defined in:
- lib/sfml/network/ftp.rb
Overview
Returned by working_directory and create_directory — adds the
#directory accessor on top of Response.
Instance Attribute Summary collapse
-
#handle ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#directory ⇒ Object
Returns the directory.
-
#message ⇒ Object
Returns the message.
-
#ok? ⇒ Boolean
trueif ok. -
#status ⇒ Object
Returns the status.
-
#status_symbol ⇒ Object
Returns the status symbol.
Instance Attribute Details
#handle ⇒ Object (readonly)
:nodoc:
180 181 182 |
# File 'lib/sfml/network/ftp.rb', line 180 def handle @handle end |
Instance Method Details
#directory ⇒ Object
Returns the directory.
179 |
# File 'lib/sfml/network/ftp.rb', line 179 def directory = C::Network.sfFtpDirectoryResponse_getDirectory(@handle).to_s |
#message ⇒ Object
Returns the message.
177 178 |
# File 'lib/sfml/network/ftp.rb', line 177 def = C::Network.sfFtpDirectoryResponse_getMessage(@handle).to_s # Returns the directory. |
#ok? ⇒ Boolean
true if ok.
171 172 |
# File 'lib/sfml/network/ftp.rb', line 171 def ok? = C::Network.sfFtpDirectoryResponse_isOk(@handle) # Returns the status. |
#status ⇒ Object
Returns the status.
173 174 |
# File 'lib/sfml/network/ftp.rb', line 173 def status = C::Network.sfFtpDirectoryResponse_getStatus(@handle) # Returns the status symbol. |
#status_symbol ⇒ Object
Returns the status symbol.
175 176 |
# File 'lib/sfml/network/ftp.rb', line 175 def status_symbol = STATUS_NAMES[status] || status # Returns the message. |