The class encapsulating an income stream.

Sections
Methods
I
N
T
Public
Attributes
[R] confidence

The Float representation of Plaid's confidence in the income data associated with this particular income stream, with 0 being the lowest confidence and 1 being the highest. E.g. 0.9.

[R] days

The Integer extent of data found for this income stream. E.g. 314.

[R] monthly_income

The Float monthly income associated with the income stream. E.g. 5700.

[R] name

The String name of the entity associated with this income stream. E.g. “APPLE INC”.

Instance Public methods
inspect()

Get a String representation of the Stream.

Returns

Returns a String.

Also aliased as: to_s
# File lib/plaid/income.rb, line 36
def inspect
  "#<Plaid::Income::Stream name=#{name.inspect}, "            "monthly_income=#{monthly_income.inspect}, "            "confidence=#{confidence.inspect}, "            "days=#{days.inspect}>"
end
to_s()

Get a String representation of the Stream.

Returns

Returns a String.

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

Initialize a Stream.

fields

The Hash with fields (keys are Strings).

# File lib/plaid/income.rb, line 26
def initialize(fields)
  @monthly_income = fields['monthly_income']
  @confidence = fields['confidence']
  @days = fields['days']
  @name = fields['name']
end