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

#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 message       = C::Network.sfFtpDirectoryResponse_getMessage(@handle).to_s
# Returns the directory.

#ok? ⇒ Boolean

true if ok.

Returns:

  • (Boolean)


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.