Method: YNAB::PutTransactionWrapper#==

Defined in:
lib/ynab/models/put_transaction_wrapper.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



78
79
80
81
82
# File 'lib/ynab/models/put_transaction_wrapper.rb', line 78

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      transaction == o.transaction
end