Method: Phrase::LocaleDownload#==

Defined in:
lib/phrase/models/locale_download.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



145
146
147
148
149
150
151
152
153
154
155
# File 'lib/phrase/models/locale_download.rb', line 145

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      status == o.status &&
      result == o.result &&
      params == o.params &&
      error == o.error &&
      created_at == o.created_at &&
      completed_at == o.completed_at
end