Method: Patch::ParentTechnologyType#==

Defined in:
lib/patch_ruby/models/parent_technology_type.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



103
104
105
106
107
108
# File 'lib/patch_ruby/models/parent_technology_type.rb', line 103

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