Sha256: e38342592a91fe0ae1cbe3e31e782ef0e079f53f490a04c507d9810d9e7c7eb5

Contents?: true

Size: 730 Bytes

Versions: 18

Compression:

Stored size: 730 Bytes

Contents

# frozen_string_literal: true

module WorkOS
  # The AuditLogExport class represents the WorkOS entity created when exporting Audit Log Events.
  class AuditLogExport
    include HashProvider

    attr_accessor :object, :id, :state, :url, :created_at, :updated_at

    def initialize(json)
      hash = JSON.parse(json, symbolize_names: true)

      @object = hash[:object]
      @id = hash[:id]
      @state = hash[:state]
      @url = hash[:url]
      @created_at = hash[:created_at]
      @updated_at = hash[:updated_at]
    end

    def to_json(*)
      {
        object: object,
        id: id,
        state: state,
        url: url,
        created_at: created_at,
        updated_at: updated_at,
      }
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
workos-5.9.0 lib/workos/audit_log_export.rb
workos-5.8.0 lib/workos/audit_log_export.rb
workos-5.7.0 lib/workos/audit_log_export.rb
workos-5.6.0 lib/workos/audit_log_export.rb
workos-5.5.1 lib/workos/audit_log_export.rb
workos-5.5.0 lib/workos/audit_log_export.rb
workos-5.4.0 lib/workos/audit_log_export.rb
workos-5.3.0 lib/workos/audit_log_export.rb
workos-5.2.1 lib/workos/audit_log_export.rb
workos-5.2.0 lib/workos/audit_log_export.rb
workos-5.1.0 lib/workos/audit_log_export.rb
workos-5.0.0 lib/workos/audit_log_export.rb
workos-4.8.0 lib/workos/audit_log_export.rb
workos-4.5.0 lib/workos/audit_log_export.rb
workos-4.4.0 lib/workos/audit_log_export.rb
workos-4.3.0 lib/workos/audit_log_export.rb
workos-4.2.1 lib/workos/audit_log_export.rb
workos-4.2.0 lib/workos/audit_log_export.rb