Method: TogaiClient::CreditTransaction#==

Defined in:
lib/togai_client/models/credit_transaction.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



219
220
221
222
223
224
225
226
227
228
229
# File 'lib/togai_client/models/credit_transaction.rb', line 219

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      credit_id == o.credit_id &&
      transaction_type == o.transaction_type &&
      invoice_id == o.invoice_id &&
      entity_id == o.entity_id &&
      amount == o.amount &&
      created_at == o.created_at
end