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

#handleObject (readonly)

:nodoc:



131
132
133
# File 'lib/sfml/network/ftp.rb', line 131

def handle
  @handle
end

Instance Method Details

#messageObject



130
# File 'lib/sfml/network/ftp.rb', line 130

def message       = C::Network.sfFtpResponse_getMessage(@handle).to_s

#ok?Boolean

Returns:

  • (Boolean)


127
# File 'lib/sfml/network/ftp.rb', line 127

def ok?           = C::Network.sfFtpResponse_isOk(@handle)

#statusObject



128
# File 'lib/sfml/network/ftp.rb', line 128

def status        = C::Network.sfFtpResponse_getStatus(@handle)

#status_symbolObject



129
# File 'lib/sfml/network/ftp.rb', line 129

def status_symbol = STATUS_NAMES[status] || status