Method: MetatronClient::Asset#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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

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