Class: Minfraud::Model::IPAddress
- Inherits:
-
MaxMind::GeoIP2::Model::Insights
- Object
- MaxMind::GeoIP2::Model::Insights
- Minfraud::Model::IPAddress
- Defined in:
- lib/minfraud/model/ip_address.rb
Overview
Model containing GeoIP2 data and the risk for the IP address.
Instance Attribute Summary collapse
-
#risk ⇒ Float
readonly
This field contains the risk associated with the IP address.
-
#risk_reasons ⇒ Array<Minfraud::Model::IPRiskReason>
readonly
This field contains IPRiskReason objects identifying the reasons why the IP address received the associated risk.
Instance Attribute Details
#risk ⇒ Float (readonly)
This field contains the risk associated with the IP address. The value ranges from 0.01 to 99. A higher score indicates a higher risk.
15 16 17 |
# File 'lib/minfraud/model/ip_address.rb', line 15 def risk @risk end |
#risk_reasons ⇒ Array<Minfraud::Model::IPRiskReason> (readonly)
This field contains IPRiskReason objects identifying the reasons why the IP address received the associated risk. This will be an empty array if there are no reasons.
22 23 24 |
# File 'lib/minfraud/model/ip_address.rb', line 22 def risk_reasons @risk_reasons end |