Class: WorkOS::AuditLogExportCreation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuditLogExportCreation
- 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
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#actor_ids ⇒ Object
Returns the value of attribute actor_ids.
-
#actor_names ⇒ Object
Returns the value of attribute actor_names.
-
#actors ⇒ Object
deprecated
Deprecated.
Deprecated. Use ‘actor_names` instead.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#range_end ⇒ Object
Returns the value of attribute range_end.
-
#range_start ⇒ Object
Returns the value of attribute range_start.
-
#targets ⇒ Object
Returns the value of attribute targets.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogExportCreation
constructor
A new instance of AuditLogExportCreation.
Methods inherited from Types::BaseModel
Methods included from HashProvider
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
#actions ⇒ Object
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_ids ⇒ Object
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_names ⇒ Object
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 |
#actors ⇒ Object
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_id ⇒ Object
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_end ⇒ Object
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_start ⇒ Object
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 |
#targets ⇒ Object
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 |