Class: SFML::Network::Ftp::Response
- Inherits:
-
Object
- Object
- SFML::Network::Ftp::Response
- Defined in:
- lib/sfml/network/ftp.rb
Overview
Generic response: most FTP operations return this.
Instance Attribute Summary collapse
-
#handle ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
-
#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:
156 157 158 |
# File 'lib/sfml/network/ftp.rb', line 156 def handle @handle end |
Instance Method Details
#message ⇒ Object
Returns the message.
155 |
# File 'lib/sfml/network/ftp.rb', line 155 def = C::Network.sfFtpResponse_getMessage(@handle).to_s |
#ok? ⇒ Boolean
true if ok.
149 150 |
# File 'lib/sfml/network/ftp.rb', line 149 def ok? = C::Network.sfFtpResponse_isOk(@handle) # Returns the status. |
#status ⇒ Object
Returns the status.
151 152 |
# File 'lib/sfml/network/ftp.rb', line 151 def status = C::Network.sfFtpResponse_getStatus(@handle) # Returns the status symbol. |
#status_symbol ⇒ Object
Returns the status symbol.
153 154 |
# File 'lib/sfml/network/ftp.rb', line 153 def status_symbol = STATUS_NAMES[status] || status # Returns the message. |