Method: TalonOne::UpdateAccount#==

Defined in:
lib/talon_one/models/update_account.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



174
175
176
177
178
179
180
181
182
# File 'lib/talon_one/models/update_account.rb', line 174

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      attributes == o.attributes &&
      company_name == o.company_name &&
      billing_email == o.billing_email &&
      state == o.state &&
      plan_expires == o.plan_expires
end