Class: Stytch::Fraud
- Inherits:
-
Object
- Object
- Stytch::Fraud
- Includes:
- RequestHelper
- Defined in:
- lib/stytch/fraud.rb
Defined Under Namespace
Classes: Email, Fingerprint, Rules, VerdictReasons
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#fingerprint ⇒ Object
readonly
Returns the value of attribute fingerprint.
-
#rules ⇒ Object
readonly
Returns the value of attribute rules.
-
#verdict_reasons ⇒ Object
readonly
Returns the value of attribute verdict_reasons.
Instance Method Summary collapse
-
#initialize(connection) ⇒ Fraud
constructor
A new instance of Fraud.
Methods included from RequestHelper
#delete_request, #get_request, #post_request, #put_request, #request_with_query_params
Constructor Details
#initialize(connection) ⇒ Fraud
Returns a new instance of Fraud.
16 17 18 19 20 21 22 23 |
# File 'lib/stytch/fraud.rb', line 16 def initialize(connection) @connection = connection @fingerprint = Stytch::Fraud::Fingerprint.new(@connection) @rules = Stytch::Fraud::Rules.new(@connection) @verdict_reasons = Stytch::Fraud::VerdictReasons.new(@connection) @email = Stytch::Fraud::Email.new(@connection) end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
14 15 16 |
# File 'lib/stytch/fraud.rb', line 14 def email @email end |
#fingerprint ⇒ Object (readonly)
Returns the value of attribute fingerprint.
14 15 16 |
# File 'lib/stytch/fraud.rb', line 14 def fingerprint @fingerprint end |
#rules ⇒ Object (readonly)
Returns the value of attribute rules.
14 15 16 |
# File 'lib/stytch/fraud.rb', line 14 def rules @rules end |
#verdict_reasons ⇒ Object (readonly)
Returns the value of attribute verdict_reasons.
14 15 16 |
# File 'lib/stytch/fraud.rb', line 14 def verdict_reasons @verdict_reasons end |