Sha256: 2c7490d2258d933211772b28393caeea6b368340d83c07c285b602eedd6108ba

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

# frozen_string_literal: true

module Masks
  module Actors
    # Actor for system tasks.
    class System < ApplicationModel
      include Masks::Actor

      attribute :session

      def nickname
        @nickname ||= "system:#{SecureRandom.hex}"
      end

      def scopes
        []
      end

      def mask!
        true
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masks-0.4.0 app/models/masks/actors/system.rb
masks-0.3.2 app/models/masks/actors/system.rb
masks-0.3.1 app/models/masks/actors/system.rb
masks-0.3.0 app/models/masks/actors/system.rb
masks-0.2.0 app/models/masks/actors/system.rb