Method: Plaid::IncomeBreakdown#==

Defined in:
lib/plaid/models/income_breakdown.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



134
135
136
137
138
139
140
141
# File 'lib/plaid/models/income_breakdown.rb', line 134

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      type == o.type &&
      rate == o.rate &&
      hours == o.hours &&
      total == o.total
end