Method: FormAPI::Error#==

Defined in:
lib/form_api/models/error.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



113
114
115
116
117
118
# File 'lib/form_api/models/error.rb', line 113

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