Class: Minfraud::Model::IPAddress
- Inherits:
-
MaxMind::GeoIP2::Model::Insights
- Object
- MaxMind::GeoIP2::Model::Country
- MaxMind::GeoIP2::Model::City
- 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.
Constant Summary collapse
- LANGUAGE_CODES =
[:de, :en, :es, :fr, :ja, :'pt-BR', :ru, :'zh-CN'].freeze
Instance Attribute Summary collapse
-
#risk ⇒ Float
readonly
This field contains the risk associated with the IP address.
Attributes inherited from MaxMind::GeoIP2::Model::City
#city, #location, #postal, #subdivisions
Attributes inherited from MaxMind::GeoIP2::Model::Country
#continent, #country, #maxmind, #registered_country, #represented_country, #traits
Method Summary
Methods inherited from MaxMind::GeoIP2::Model::City
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.
14 15 16 |
# File 'lib/minfraud/model/ip_address.rb', line 14 def risk @risk end |