Class: SFML::Network::Ftp::ListingResponse
- Inherits:
-
Object
- Object
- SFML::Network::Ftp::ListingResponse
- Defined in:
- lib/sfml/network/ftp.rb
Overview
Returned by directory_listing — adds the ‘#names` array.
Instance Attribute Summary collapse
-
#handle ⇒ Object
readonly
:nodoc:.
Instance Method Summary collapse
- #count ⇒ Object
- #message ⇒ Object
- #names ⇒ Object
- #ok? ⇒ Boolean
- #status ⇒ Object
- #status_symbol ⇒ Object
Instance Attribute Details
#handle ⇒ Object (readonly)
:nodoc:
168 169 170 |
# File 'lib/sfml/network/ftp.rb', line 168 def handle @handle end |
Instance Method Details
#count ⇒ Object
167 |
# File 'lib/sfml/network/ftp.rb', line 167 def count = C::Network.sfFtpListingResponse_getCount(@handle) |
#message ⇒ Object
166 |
# File 'lib/sfml/network/ftp.rb', line 166 def = C::Network.sfFtpListingResponse_getMessage(@handle).to_s |
#names ⇒ Object
170 171 172 |
# File 'lib/sfml/network/ftp.rb', line 170 def names Array.new(count) { |i| C::Network.sfFtpListingResponse_getName(@handle, i).to_s } end |
#ok? ⇒ Boolean
163 |
# File 'lib/sfml/network/ftp.rb', line 163 def ok? = C::Network.sfFtpListingResponse_isOk(@handle) |
#status ⇒ Object
164 |
# File 'lib/sfml/network/ftp.rb', line 164 def status = C::Network.sfFtpListingResponse_getStatus(@handle) |
#status_symbol ⇒ Object
165 |
# File 'lib/sfml/network/ftp.rb', line 165 def status_symbol = STATUS_NAMES[status] || status |