Method: Conekta::TokenCheckout#==

Defined in:
lib/conekta/models/token_checkout.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



83
84
85
86
87
# File 'lib/conekta/models/token_checkout.rb', line 83

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