Class: Callcredit::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/callcredit/response.rb

Instance Method Summary collapse

Constructor Details

#initialize(response_data) ⇒ Response

Returns a new instance of Response.



3
4
5
# File 'lib/callcredit/response.rb', line 3

def initialize(response_data)
  @response_data = response_data
end

Instance Method Details

#full_resultObject



27
28
29
# File 'lib/callcredit/response.rb', line 27

def full_result
  @response_data
end

#inputObject



15
16
17
# File 'lib/callcredit/response.rb', line 15

def input
  @response_data["Results"]["Result"]["Displays"]["InputData"]
end

#pidObject



11
12
13
# File 'lib/callcredit/response.rb', line 11

def pid
  @response_data["Results"]["Result"]["PID"]
end

#resultObject



19
20
21
# File 'lib/callcredit/response.rb', line 19

def result
  @response_data["Results"]["Result"]["Displays"]["IdentityCheck"]
end

#ridObject



7
8
9
# File 'lib/callcredit/response.rb', line 7

def rid
  @response_data["Results"]["Result"]["RID"]
end

#warningsObject



23
24
25
# File 'lib/callcredit/response.rb', line 23

def warnings
  @response_data["Results"]["Result"]["Displays"]["Warnings"]
end