Class: IATSResponse
- Inherits:
-
Object
- Object
- IATSResponse
- Defined in:
- lib/model/IATSResponse.rb
Instance Attribute Summary (collapse)
-
- (Object) AUTHRESULT
Returns the value of attribute AUTHRESULT.
-
- (Object) BATCHPROCESSRESULT
Returns the value of attribute BATCHPROCESSRESULT.
-
- (Object) CUSTOMERS
Returns the value of attribute CUSTOMERS.
-
- (Object) ERRORS
Returns the value of attribute ERRORS.
-
- (Object) FILE
Returns the value of attribute FILE.
-
- (Object) JOURNALREPORT
Returns the value of attribute JOURNALREPORT.
-
- (Object) PROCESSRESULT
Returns the value of attribute PROCESSRESULT.
-
- (Object) STATUS
Returns the value of attribute STATUS.
Instance Method Summary (collapse)
-
- (IATSResponse) initialize(hash)
constructor
A new instance of IATSResponse.
Constructor Details
- (IATSResponse) initialize(hash)
Returns a new instance of IATSResponse
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/model/IATSResponse.rb', line 17 def initialize(hash) unless hash.nil? res = hash["IATSRESPONSE"] @STATUS = res["STATUS"] unless res["PROCESSRESULT"].nil? @PROCESSRESULT = ProcessResult.new(res["PROCESSRESULT"]) end unless res["BATCHPROCESSRESULT"].nil? @BATCHPROCESSRESULT = BatchProcessResult.new(res["BATCHPROCESSRESULT"]) end unless res["AUTHRESULT"].nil? @AUTHRESULT = AuthResult.new(res["AUTHRESULT"]) end unless res["CUSTOMERS"].nil? @CUSTOMERS = Customer.new(res["CUSTOMERS"]) end unless res["JOURNALREPORT"].nil? @JOURNALREPORT = JournalReport.new(res["JOURNALREPORT"]) end unless res["FILE"].nil? @FILE = res["FILE"] end end end |
Instance Attribute Details
- (Object) AUTHRESULT
Returns the value of attribute AUTHRESULT
12 13 14 |
# File 'lib/model/IATSResponse.rb', line 12 def AUTHRESULT @AUTHRESULT end |
- (Object) BATCHPROCESSRESULT
Returns the value of attribute BATCHPROCESSRESULT
11 12 13 |
# File 'lib/model/IATSResponse.rb', line 11 def BATCHPROCESSRESULT @BATCHPROCESSRESULT end |
- (Object) CUSTOMERS
Returns the value of attribute CUSTOMERS
13 14 15 |
# File 'lib/model/IATSResponse.rb', line 13 def CUSTOMERS @CUSTOMERS end |
- (Object) ERRORS
Returns the value of attribute ERRORS
9 10 11 |
# File 'lib/model/IATSResponse.rb', line 9 def ERRORS @ERRORS end |
- (Object) FILE
Returns the value of attribute FILE
14 15 16 |
# File 'lib/model/IATSResponse.rb', line 14 def FILE @FILE end |
- (Object) JOURNALREPORT
Returns the value of attribute JOURNALREPORT
15 16 17 |
# File 'lib/model/IATSResponse.rb', line 15 def JOURNALREPORT @JOURNALREPORT end |
- (Object) PROCESSRESULT
Returns the value of attribute PROCESSRESULT
10 11 12 |
# File 'lib/model/IATSResponse.rb', line 10 def PROCESSRESULT @PROCESSRESULT end |
- (Object) STATUS
Returns the value of attribute STATUS
8 9 10 |
# File 'lib/model/IATSResponse.rb', line 8 def STATUS @STATUS end |