class SF::Ftp::Response
- SF::Ftp::Response
- Reference
- Object
Overview
Define a FTP response
Direct Known Subclasses
Defined in:
network/obj.crConstructors
- 
        .new(code : Ftp::Response::Status = InvalidResponse, message : String = "")
        
          Default constructor 
Instance Method Summary
- 
        #dup : Response
        
          Returns a shallow copy of this object. 
- #finalize
- 
        #message : String
        
          Get the full message contained in the response 
- 
        #ok? : Bool
        
          Check if the status code means a success 
- 
        #status : Ftp::Response::Status
        
          Get the status code of the response 
Constructor Detail
Default constructor
This constructor is used by the FTP client to build the response.
- code - Response status code
- message - Response message
Instance Method Detail
              Description copied from class Reference
            
          
          Returns a shallow copy of this object.
This allocates a new object and copies the contents of
self into it.
        
        def ok? : Bool
        #
      
      
        Check if the status code means a success
This function is defined for convenience, it is equivalent to testing if the status code is < 400.
Returns: True if the status is a success, false if it is a failure