Representation of risk data (per account).

Sections
Methods
I
N
T
Public
Attributes
[R] reason

The Hash with Symbol reasons and associated Float subscores contributing to the overall risk score.

E.g. { transaction_amounts: 0.78, foreign_fees: 0.96, … }.

[R] score

The Float comprehensive risk score associated with the account, where 0 is the lowest risk and 1 is the highest. E.g. 0.5.

Instance Public methods
inspect()

Get a String representation of Risk.

Returns

Returns a String.

Also aliased as: to_s
# File lib/plaid/risk.rb, line 25
def inspect
  "#<Plaid::Risk score=#{score.inspect}, ..."
end
to_s()

Get a String representation of Risk.

Returns

Returns a String.

Alias for: inspect
Internal
Class Public methods
new(fields)

Construct a Risk object.

fields

The Hash with fields.

# File lib/plaid/risk.rb, line 17
def initialize(fields)
  @score = fields['score']
  @reason = Plaid.symbolize_hash(fields['reason'])
end