Class: PeaCommandResponse

Inherits:
Object
  • Object
show all
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

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

#warningsObject



232
233
234
# File 'lib/pea_response.rb', line 232

def warnings
    @warnings
end