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



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

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
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

#ridObject



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

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

#warningsObject



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

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