Method: Wallee::Tax#==

Defined in:
lib/wallee-ruby-sdk/models/tax.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



101
102
103
104
105
106
# File 'lib/wallee-ruby-sdk/models/tax.rb', line 101

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