Sha256: 5098bc244b6483cca9bbcde8dba2afdc4d468a35f1280507db3310b2bc3751df

Contents?: true

Size: 710 Bytes

Versions: 10

Compression:

Stored size: 710 Bytes

Contents

module Shamu
  module Auditing
    class AuditRecord < Entities::Entity

      # ============================================================================
      # @!group Attributes
      #

      model :record

      # @!attribute
      # @return [Integer]
      attribute :id, on: :record

      # @!attribute
      # @return [String] an {EntityPath} from the root to the target entity.
      attribute :entity_path, on: :record

      # @!attribute
      # @return [Time] when the transaction occured.
      attribute :timestamp, on: :record

      # @!attribute
      # @return [Hash] the changes requested.
      attribute :changes, on: :record

      #
      # @!endgroup Attributes

    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
shamu-0.0.14 lib/shamu/auditing/audit_record.rb
shamu-0.0.13 lib/shamu/auditing/audit_record.rb
shamu-0.0.11 lib/shamu/auditing/audit_record.rb
shamu-0.0.9 lib/shamu/auditing/audit_record.rb
shamu-0.0.8 lib/shamu/auditing/audit_record.rb
shamu-0.0.7 lib/shamu/auditing/audit_record.rb
shamu-0.0.5 lib/shamu/auditing/audit_record.rb
shamu-0.0.4 lib/shamu/auditing/audit_record.rb
shamu-0.0.3 lib/shamu/auditing/audit_record.rb
shamu-0.0.2 lib/shamu/auditing/audit_record.rb