Class: Callcredit::Response
- Inherits:
-
Object
- Object
- Callcredit::Response
- Defined in:
- lib/callcredit/response.rb
Instance Method Summary collapse
- #full_result ⇒ Object
-
#initialize(response_data) ⇒ Response
constructor
A new instance of Response.
- #input ⇒ Object
- #pid ⇒ Object
- #result ⇒ Object
- #rid ⇒ Object
- #warnings ⇒ Object
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_result ⇒ Object
28 29 30 |
# File 'lib/callcredit/response.rb', line 28 def full_result @response_data end |
#input ⇒ Object
15 16 17 |
# File 'lib/callcredit/response.rb', line 15 def input @response_data["Results"]["Result"]["Displays"]["InputData"] end |
#pid ⇒ Object
11 12 13 |
# File 'lib/callcredit/response.rb', line 11 def pid @response_data["Results"]["Result"]["PID"] end |
#result ⇒ Object
19 20 21 22 |
# File 'lib/callcredit/response.rb', line 19 def result @response_data["Results"]["Result"]["Displays"]. reject { |k, v| displays_excluded_from_results.include?(k) } end |
#rid ⇒ Object
7 8 9 |
# File 'lib/callcredit/response.rb', line 7 def rid @response_data["Results"]["Result"]["RID"] end |
#warnings ⇒ Object
24 25 26 |
# File 'lib/callcredit/response.rb', line 24 def warnings @response_data["Results"]["Result"]["Displays"]["Warnings"] end |