Class: PeaCommandResponse
- Inherits:
-
Object
- Object
- PeaCommandResponse
- Defined in:
- lib/pea_response.rb
Overview
Represents the concept of response in the case of an OS/400 command executed on the database of an AS/400 server by a PeaClient object.
Instance Method Summary collapse
-
#initialize(warnings) ⇒ PeaCommandResponse
constructor
Initialize a new instance of the PeaCommandResponse class.
- #warnings ⇒ Object
Constructor Details
#initialize(warnings) ⇒ PeaCommandResponse
Initialize a new instance of the PeaCommandResponse class.
Params:
has_succeeded
-
Boolean set to true if the command has correctly been executed meaning that no CPFxxxx was return. Still, description messages can be return along with CP*xxxx.
warnings
-
List of warnings that results form the command execution. Errors are of the form : CP*xxxx Description of the warning.
228 229 230 |
# File 'lib/pea_response.rb', line 228 def initialize(warnings) @warnings = warnings end |
Instance Method Details
#warnings ⇒ Object
232 233 234 |
# File 'lib/pea_response.rb', line 232 def warnings @warnings end |