Method: UpBankingClient::MoneyObject#==
- Defined in:
- lib/up_banking/models/money_object.rb
#==(o) ⇒ Object
Checks equality by comparing each attribute.
115 116 117 118 119 120 121 |
# File 'lib/up_banking/models/money_object.rb', line 115 def ==(o) return true if self.equal?(o) self.class == o.class && currency_code == o.currency_code && value == o.value && value_in_base_units == o.value_in_base_units end |