Method: Kuapir::Distribution#==

Defined in:
lib/kuapir/models/distribution.rb

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



155
156
157
158
159
160
161
162
163
164
165
# File 'lib/kuapir/models/distribution.rb', line 155

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

  self.class == other.class &&
    type == other.type &&
    sub_type == other.sub_type &&
    date == other.date &&
    re_release == other.re_release &&
    country == other.country &&
    companies == other.companies
end