class Minfraud::Model::IPRiskReason

Reason for the IP risk.

This class provides both a machine-readable code and a human-readable explanation of the reason for the IP risk score.

Although more codes may be added in the future, the current codes are:

Attributes

code[R]

This value is a machine-readable code identifying the reason.

@return [String, nil]

reason[R]

This field provides a human-readable explanation of the reason. The text may change at any time and should not be matched against.

@return [String, nil]

Public Class Methods

new(record) click to toggle source

@!visibility private

Calls superclass method Minfraud::Model::Abstract::new
# File lib/minfraud/model/ip_risk_reason.rb, line 40
def initialize(record)
  super(record)

  @code   = get('code')
  @reason = get('reason')
end