Class: WorkOS::AuditLogsRetentionJson
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuditLogsRetentionJson
- Defined in:
- lib/workos/organizations/audit_logs_retention_json.rb
Constant Summary collapse
- HASH_ATTRS =
{ retention_period_in_days: :retention_period_in_days }.freeze
Instance Attribute Summary collapse
-
#retention_period_in_days ⇒ Object
Returns the value of attribute retention_period_in_days.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogsRetentionJson
constructor
A new instance of AuditLogsRetentionJson.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuditLogsRetentionJson
Returns a new instance of AuditLogsRetentionJson.
13 14 15 16 |
# File 'lib/workos/organizations/audit_logs_retention_json.rb', line 13 def initialize(json) hash = self.class.normalize(json) @retention_period_in_days = hash[:retention_period_in_days] end |
Instance Attribute Details
#retention_period_in_days ⇒ Object
Returns the value of attribute retention_period_in_days.
11 12 13 |
# File 'lib/workos/organizations/audit_logs_retention_json.rb', line 11 def retention_period_in_days @retention_period_in_days end |