Class: Minfraud::Model::Device
- Inherits:
-
Abstract
- Object
- Abstract
- Minfraud::Model::Device
- Defined in:
- lib/minfraud/model/device.rb
Overview
Model with information about the device.
In order to receive device output from minFraud Insights or minFraud Factors, you must be using the Device Tracking Add-on (dev.maxmind.com/minfraud/track-devices?lang=en).
Instance Attribute Summary collapse
-
#confidence ⇒ Float?
readonly
This number represents our confidence that the device_id refers to a unique device as opposed to a cluster of similar devices.
-
#id ⇒ String?
readonly
A UUID that MaxMind uses for the device associated with this IP address.
-
#last_seen ⇒ String?
readonly
This is the date and time of the last sighting of the device.
-
#local_time ⇒ String?
readonly
This is the local date and time of the transaction in the time zone of the device.
Instance Attribute Details
#confidence ⇒ Float? (readonly)
This number represents our confidence that the device_id refers to a unique device as opposed to a cluster of similar devices. A confidence of 0.01 indicates very low confidence that the device is unique, whereas 99 indicates very high confidence.
19 20 21 |
# File 'lib/minfraud/model/device.rb', line 19 def confidence @confidence end |
#id ⇒ String? (readonly)
A UUID that MaxMind uses for the device associated with this IP address.
25 26 27 |
# File 'lib/minfraud/model/device.rb', line 25 def id @id end |
#last_seen ⇒ String? (readonly)
This is the date and time of the last sighting of the device. This is an RFC 3339 date-time.
31 32 33 |
# File 'lib/minfraud/model/device.rb', line 31 def last_seen @last_seen end |
#local_time ⇒ String? (readonly)
This is the local date and time of the transaction in the time zone of the device. This is determined by using the UTC offset associated with the device. This is an RFC 3339 date-time
38 39 40 |
# File 'lib/minfraud/model/device.rb', line 38 def local_time @local_time end |