Method: AmznSpApi::NotificationsApiModel::Error#==

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

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



90
91
92
93
94
95
96
97
# File 'lib/notifications_api_model/models/error.rb', line 90

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    code == other.code &&
    message == other.message &&
    details == other.details
end