Class: Kount::RiskInquiry
- Inherits:
-
Object
- Object
- Kount::RiskInquiry
- Defined in:
- lib/kount/response.rb
Instance Attribute Summary collapse
-
#decision ⇒ Object
Returns the value of attribute decision.
-
#device ⇒ Object
Returns the value of attribute device.
-
#omniscore ⇒ Object
Returns the value of attribute omniscore.
-
#persona ⇒ Object
Returns the value of attribute persona.
-
#segment_executed ⇒ Object
Returns the value of attribute segment_executed.
Instance Method Summary collapse
- #approved? ⇒ Boolean
-
#initialize(attrs = {}) ⇒ RiskInquiry
constructor
A new instance of RiskInquiry.
Constructor Details
#initialize(attrs = {}) ⇒ RiskInquiry
Returns a new instance of RiskInquiry.
41 42 43 44 45 46 47 |
# File 'lib/kount/response.rb', line 41 def initialize(attrs = {}) @decision = attrs["decision"] @omniscore = attrs["omniscore"] @persona = Persona.new(attrs["persona"] || {}) @device = attrs["device"] @segment_executed = SegmentExecuted.new(attrs["segment_executed"] || {}) end |
Instance Attribute Details
#decision ⇒ Object
Returns the value of attribute decision.
39 40 41 |
# File 'lib/kount/response.rb', line 39 def decision @decision end |
#device ⇒ Object
Returns the value of attribute device.
39 40 41 |
# File 'lib/kount/response.rb', line 39 def device @device end |
#omniscore ⇒ Object
Returns the value of attribute omniscore.
39 40 41 |
# File 'lib/kount/response.rb', line 39 def omniscore @omniscore end |
#persona ⇒ Object
Returns the value of attribute persona.
39 40 41 |
# File 'lib/kount/response.rb', line 39 def persona @persona end |
#segment_executed ⇒ Object
Returns the value of attribute segment_executed.
39 40 41 |
# File 'lib/kount/response.rb', line 39 def segment_executed @segment_executed end |
Instance Method Details
#approved? ⇒ Boolean
49 50 51 |
# File 'lib/kount/response.rb', line 49 def approved? @decision == "APPROVE" end |