Class: DingSDK::Models::Shared::Signals

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/ding_sdk/models/shared/signals.rb

Overview

Signals are data points used to distinguish between fraudulent and legitimate users.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(app_realm: nil, app_version: nil, device_id: nil, device_model: nil, device_type: nil, ip: nil, is_returning_user: nil, os_version: nil) ⇒ Signals

Returns a new instance of Signals.



35
36
37
38
39
40
41
42
43
44
# File 'lib/ding_sdk/models/shared/signals.rb', line 35

def initialize(app_realm: nil, app_version: nil, device_id: nil, device_model: nil, device_type: nil, ip: nil, is_returning_user: nil, os_version: nil)
  @app_realm = app_realm
  @app_version = app_version
  @device_id = device_id
  @device_model = device_model
  @device_type = device_type
  @ip = ip
  @is_returning_user = is_returning_user
  @os_version = os_version
end

Instance Method Details

#==(other) ⇒ Object



46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/ding_sdk/models/shared/signals.rb', line 46

def ==(other)
  return false unless other.is_a? self.class
  return false unless @app_realm == other.app_realm
  return false unless @app_version == other.app_version
  return false unless @device_id == other.device_id
  return false unless @device_model == other.device_model
  return false unless @device_type == other.device_type
  return false unless @ip == other.ip
  return false unless @is_returning_user == other.is_returning_user
  return false unless @os_version == other.os_version
  true
end