Class: SFML::Network::Ftp::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/sfml/network/ftp.rb

Overview

Generic response: most FTP operations return this.

Instance Attribute Summary collapse

Instance Method Summary collapse

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 message       = C::Network.sfFtpResponse_getMessage(@handle).to_s

#ok? ⇒ Boolean

true if ok.

Returns:

  • (Boolean)


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.