Class: SFML::FtpResponse
- Inherits:
-
Object
- Object
- SFML::FtpResponse
- Defined in:
- ext/network/ftp.c,
ext/network/ftp.c
Overview
The status and message returned by most Ftp commands.
Instance Method Summary collapse
-
#message ⇒ String
Returns the message sent by the server.
-
#ok? ⇒ Boolean
Returns
trueif the server reported success. -
#status ⇒ Integer
Returns the raw status code reported by the server.
-
#status_name ⇒ Symbol
Returns the status as an FtpStatus name.
Instance Method Details
#message ⇒ String
Returns the message sent by the server.
441 442 443 |
# File 'ext/network/ftp.c', line 441 static VALUE FtpResponse_message(VALUE self) { return rb_str_new_cstr(sfFtpResponse_getMessage(Get_FtpResponse_Struct(self))); } |
#ok? ⇒ Boolean
Returns true if the server reported success.
410 411 412 |
# File 'ext/network/ftp.c', line 410 static VALUE FtpResponse_ok(VALUE self) { return BOOL2RB(sfFtpResponse_isOk(Get_FtpResponse_Struct(self))); } |
#status ⇒ Integer
Returns the raw status code reported by the server.
420 421 422 |
# File 'ext/network/ftp.c', line 420 static VALUE FtpResponse_status(VALUE self) { return INT2NUM(sfFtpResponse_getStatus(Get_FtpResponse_Struct(self))); } |
#status_name ⇒ Symbol
Returns the status as an FtpStatus name.
430 431 432 433 |
# File 'ext/network/ftp.c', line 430 static VALUE FtpResponse_status_name(VALUE self) { return ID2SYM( rb_intern(ftp_status_name(sfFtpResponse_getStatus(Get_FtpResponse_Struct(self))))); } |