Class: Worldline::Connect::SDK::V1::Domain::MicrosoftFraudResults
- Inherits:
-
Domain::DataObject
- Object
- Domain::DataObject
- Worldline::Connect::SDK::V1::Domain::MicrosoftFraudResults
- Defined in:
- lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb
Instance Attribute Summary collapse
-
#clause_name ⇒ String
The current value of clause_name.
-
#device_country_code ⇒ String
The current value of device_country_code.
-
#device_id ⇒ String
The current value of device_id.
-
#fraud_score ⇒ Integer
The current value of fraud_score.
-
#policy_applied ⇒ String
The current value of policy_applied.
-
#true_ip_address ⇒ String
The current value of true_ip_address.
-
#user_device_type ⇒ String
The current value of user_device_type.
Instance Method Summary collapse
Methods inherited from Domain::DataObject
Instance Attribute Details
#clause_name ⇒ String
Returns the current value of clause_name.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19 def clause_name @clause_name end |
#device_country_code ⇒ String
Returns the current value of device_country_code.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19 def device_country_code @device_country_code end |
#device_id ⇒ String
Returns the current value of device_id.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19 def device_id @device_id end |
#fraud_score ⇒ Integer
Returns the current value of fraud_score.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19 def fraud_score @fraud_score end |
#policy_applied ⇒ String
Returns the current value of policy_applied.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19 def policy_applied @policy_applied end |
#true_ip_address ⇒ String
Returns the current value of true_ip_address.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19 def true_ip_address @true_ip_address end |
#user_device_type ⇒ String
Returns the current value of user_device_type.
19 20 21 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 19 def user_device_type @user_device_type end |
Instance Method Details
#from_hash(hash) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 48 def from_hash(hash) super if hash.has_key? 'clauseName' @clause_name = hash['clauseName'] end if hash.has_key? 'deviceCountryCode' @device_country_code = hash['deviceCountryCode'] end if hash.has_key? 'deviceId' @device_id = hash['deviceId'] end if hash.has_key? 'fraudScore' @fraud_score = hash['fraudScore'] end if hash.has_key? 'policyApplied' @policy_applied = hash['policyApplied'] end if hash.has_key? 'trueIpAddress' @true_ip_address = hash['trueIpAddress'] end if hash.has_key? 'userDeviceType' @user_device_type = hash['userDeviceType'] end end |
#to_h ⇒ Hash
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/worldline/connect/sdk/v1/domain/microsoft_fraud_results.rb', line 36 def to_h hash = super hash['clauseName'] = @clause_name unless @clause_name.nil? hash['deviceCountryCode'] = @device_country_code unless @device_country_code.nil? hash['deviceId'] = @device_id unless @device_id.nil? hash['fraudScore'] = @fraud_score unless @fraud_score.nil? hash['policyApplied'] = @policy_applied unless @policy_applied.nil? hash['trueIpAddress'] = @true_ip_address unless @true_ip_address.nil? hash['userDeviceType'] = @user_device_type unless @user_device_type.nil? hash end |