Class: WorkOS::AuditLogConfigurationLogStream
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- WorkOS::AuditLogConfigurationLogStream
- Defined in:
- lib/workos/organizations/audit_log_configuration_log_stream.rb
Constant Summary collapse
- HASH_ATTRS =
{ id: :id, type: :type, state: :state, last_synced_at: :last_synced_at, created_at: :created_at }.freeze
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_synced_at ⇒ Object
Returns the value of attribute last_synced_at.
-
#state ⇒ Object
Returns the value of attribute state.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Types::BaseModel
Instance Method Summary collapse
-
#initialize(json) ⇒ AuditLogConfigurationLogStream
constructor
A new instance of AuditLogConfigurationLogStream.
Methods inherited from Types::BaseModel
Methods included from HashProvider
Constructor Details
#initialize(json) ⇒ AuditLogConfigurationLogStream
Returns a new instance of AuditLogConfigurationLogStream.
22 23 24 25 26 27 28 29 |
# File 'lib/workos/organizations/audit_log_configuration_log_stream.rb', line 22 def initialize(json) hash = self.class.normalize(json) @id = hash[:id] @type = hash[:type] @state = hash[:state] @last_synced_at = hash[:last_synced_at] @created_at = hash[:created_at] end |
Instance Attribute Details
#created_at ⇒ Object
Returns the value of attribute created_at.
15 16 17 |
# File 'lib/workos/organizations/audit_log_configuration_log_stream.rb', line 15 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
15 16 17 |
# File 'lib/workos/organizations/audit_log_configuration_log_stream.rb', line 15 def id @id end |
#last_synced_at ⇒ Object
Returns the value of attribute last_synced_at.
15 16 17 |
# File 'lib/workos/organizations/audit_log_configuration_log_stream.rb', line 15 def last_synced_at @last_synced_at end |
#state ⇒ Object
Returns the value of attribute state.
15 16 17 |
# File 'lib/workos/organizations/audit_log_configuration_log_stream.rb', line 15 def state @state end |
#type ⇒ Object
Returns the value of attribute type.
15 16 17 |
# File 'lib/workos/organizations/audit_log_configuration_log_stream.rb', line 15 def type @type end |