Class: Unit::Types::DeviceFingerprint

Inherits:
Object
  • Object
show all
Defined in:
lib/unit/types/device_fingerprint.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, provider = "iovation") ⇒ DeviceFingerprint

Returns a new instance of DeviceFingerprint.

Parameters:

  • value (String)

    The value

  • provider (String) (defaults to: "iovation")

    The provider



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

#providerObject (readonly)

Returns the value of attribute provider.



6
7
8
# File 'lib/unit/types/device_fingerprint.rb', line 6

def provider
  @provider
end

#valueObject (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

#representObject



15
16
17
18
19
20
# File 'lib/unit/types/device_fingerprint.rb', line 15

def represent
  {
    value: value,
    provider: provider
  }
end