Method: Phrase::ReleaseTrigger#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# File 'lib/phrase/models/release_trigger.rb', line 149

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      branch == o.branch &&
      cron_schedule == o.cron_schedule &&
      time_zone == o.time_zone &&
      next_run_at == o.next_run_at &&
      app_min_version == o.app_min_version &&
      app_max_version == o.app_max_version &&
      locales == o.locales &&
      tags == o.tags &&
      created_at == o.created_at &&
      updated_at == o.updated_at
end