Method: Kickflow::GradeCreateBody#==

Defined in:
lib/kickflow/models/grade_create_body.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



182
183
184
185
186
187
188
# File 'lib/kickflow/models/grade_create_body.rb', line 182

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      name == o.name &&
      level == o.level &&
      code == o.code
end