Method: ForestVPNCloudAPI::Activity#==

Defined in:
lib/forestvpn_cloud_api/models/activity.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



212
213
214
215
216
217
218
219
220
221
222
223
224
225
# File 'lib/forestvpn_cloud_api/models/activity.rb', line 212

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      action_type == o.action_type &&
      resource_type == o.resource_type &&
      user == o.user &&
      api_token == o.api_token &&
      project == o.project &&
      source_ip == o.source_ip &&
      status == o.status &&
      created_at == o.created_at &&
      finished_at == o.finished_at
end