Class: WorkOS::AuditLogExportCreation

Inherits:
Types::BaseModel show all
Defined in:
lib/workos/audit_logs/audit_log_export_creation.rb

Constant Summary collapse

HASH_ATTRS =
{
  organization_id: :organization_id,
  range_start: :range_start,
  range_end: :range_end,
  actions: :actions,
  actors: :actors,
  actor_names: :actor_names,
  actor_ids: :actor_ids,
  targets: :targets
}.freeze

Instance Attribute Summary collapse

Attributes inherited from Types::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Types::BaseModel

normalize

Methods included from HashProvider

#inspect, #to_h, #to_json

Constructor Details

#initialize(json) ⇒ AuditLogExportCreation

Returns a new instance of AuditLogExportCreation.



37
38
39
40
41
42
43
44
45
46
47
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 37

def initialize(json)
  hash = self.class.normalize(json)
  @organization_id = hash[:organization_id]
  @range_start = hash[:range_start]
  @range_end = hash[:range_end]
  @actions = hash[:actions] || []
  @actors = hash[:actors] || []
  @actor_names = hash[:actor_names] || []
  @actor_ids = hash[:actor_ids] || []
  @targets = hash[:targets] || []
end

Instance Attribute Details

#actionsObject

Returns the value of attribute actions.



21
22
23
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

def actions
  @actions
end

#actor_idsObject

Returns the value of attribute actor_ids.



21
22
23
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

def actor_ids
  @actor_ids
end

#actor_namesObject

Returns the value of attribute actor_names.



21
22
23
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

def actor_names
  @actor_names
end

#actorsObject

Deprecated.

Deprecated. Use ‘actor_names` instead.



21
22
23
24
25
26
27
28
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

attr_accessor \
:organization_id,
:range_start,
:range_end,
:actions,
:actor_names,
:actor_ids,
:targets

#organization_idObject

Returns the value of attribute organization_id.



21
22
23
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

def organization_id
  @organization_id
end

#range_endObject

Returns the value of attribute range_end.



21
22
23
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

def range_end
  @range_end
end

#range_startObject

Returns the value of attribute range_start.



21
22
23
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

def range_start
  @range_start
end

#targetsObject

Returns the value of attribute targets.



21
22
23
# File 'lib/workos/audit_logs/audit_log_export_creation.rb', line 21

def targets
  @targets
end