Class: SFML::Network::Ftp::DirectoryResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#handleObject (readonly)

:nodoc:



150
151
152
# File 'lib/sfml/network/ftp.rb', line 150

def handle
  @handle
end

Instance Method Details

#directoryObject



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

def directory     = C::Network.sfFtpDirectoryResponse_getDirectory(@handle).to_s

#messageObject



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

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

#ok?Boolean

Returns:

  • (Boolean)


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

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

#statusObject



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

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

#status_symbolObject



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

def status_symbol = STATUS_NAMES[status] || status