Class: Unit::Types::DeviceFingerprint
- Inherits:
-
Object
- Object
- Unit::Types::DeviceFingerprint
- Defined in:
- lib/unit/types/device_fingerprint.rb
Instance Attribute Summary collapse
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, provider = "iovation") ⇒ DeviceFingerprint
constructor
A new instance of DeviceFingerprint.
- #represent ⇒ Object
Constructor Details
#initialize(value, provider = "iovation") ⇒ DeviceFingerprint
Returns a new instance of DeviceFingerprint.
10 11 12 13 |
# File 'lib/unit/types/device_fingerprint.rb', line 10 def initialize(value, provider = "iovation") @value = value @provider = provider end |
Instance Attribute Details
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
6 7 8 |
# File 'lib/unit/types/device_fingerprint.rb', line 6 def provider @provider end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
6 7 8 |
# File 'lib/unit/types/device_fingerprint.rb', line 6 def value @value end |
Instance Method Details
#represent ⇒ Object
15 16 17 18 19 20 |
# File 'lib/unit/types/device_fingerprint.rb', line 15 def represent { value: value, provider: provider } end |