Method: MetatronClient::ResourceData#==

Defined in:
lib/metatron_ruby_client/models/resource_data.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • to be compared



171
172
173
174
175
176
177
178
# File 'lib/metatron_ruby_client/models/resource_data.rb', line 171

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      type == o.type &&
      attributes == o.attributes &&
      relationships == o.relationships
end