Class: WorkOS::AuditLogConfiguration
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuditLogConfiguration
- Defined in:
- lib/workos/organizations/audit_log_configuration.rb
Constant Summary collapse
- HASH_ATTRS =
{ organization_id: :organization_id, retention_period_in_days: :retention_period_in_days, state: :state, log_stream: :log_stream }.freeze
Instance Attribute Summary collapse
-
#log_stream ⇒ Object
Returns the value of attribute log_stream.
-
#organization_id ⇒ Object
Returns the value of attribute organization_id.
-
#retention_period_in_days ⇒ Object
Returns the value of attribute retention_period_in_days.
-
#state ⇒ Object
Returns the value of attribute state.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogConfiguration
constructor
A new instance of AuditLogConfiguration.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuditLogConfiguration
Returns a new instance of AuditLogConfiguration.
20 21 22 23 24 25 26 |
# File 'lib/workos/organizations/audit_log_configuration.rb', line 20 def initialize(json) hash = self.class.normalize(json) @organization_id = hash[:organization_id] @retention_period_in_days = hash[:retention_period_in_days] @state = hash[:state] @log_stream = hash[:log_stream] ? WorkOS::AuditLogConfigurationLogStream.new(hash[:log_stream]) : nil end |
Instance Attribute Details
#log_stream ⇒ Object
Returns the value of attribute log_stream.
14 15 16 |
# File 'lib/workos/organizations/audit_log_configuration.rb', line 14 def log_stream @log_stream end |
#organization_id ⇒ Object
Returns the value of attribute organization_id.
14 15 16 |
# File 'lib/workos/organizations/audit_log_configuration.rb', line 14 def organization_id @organization_id end |
#retention_period_in_days ⇒ Object
Returns the value of attribute retention_period_in_days.
14 15 16 |
# File 'lib/workos/organizations/audit_log_configuration.rb', line 14 def retention_period_in_days @retention_period_in_days end |
#state ⇒ Object
Returns the value of attribute state.
14 15 16 |
# File 'lib/workos/organizations/audit_log_configuration.rb', line 14 def state @state end |