Method: YNAB::SubTransaction#==
- Defined in:
- lib/ynab/models/sub_transaction.rb
#==(o) ⇒ Object
Checks equality by comparing each attribute.
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 |
# File 'lib/ynab/models/sub_transaction.rb', line 172 def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && transaction_id == o.transaction_id && amount == o.amount && memo == o.memo && payee_id == o.payee_id && payee_name == o.payee_name && category_id == o.category_id && category_name == o.category_name && transfer_account_id == o.transfer_account_id && transfer_transaction_id == o.transfer_transaction_id && deleted == o.deleted end |