Sha256: b4ca11dd0f228afce2aceb3ac346650f747b48b5a15d16a5daa13eb760f24803

Contents?: true

Size: 348 Bytes

Versions: 7

Compression:

Stored size: 348 Bytes

Contents

# typed: false
# frozen_string_literal: true

require 'duckface'

module CleanArchitecture
  module Interfaces
    module UseCaseActor
      extend Duckface::ActsAsInterface

      def authorized?(_action, _target)
        raise NotImplementedError
      end

      def user_identifier
        raise NotImplementedError
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
clean-architecture-5.0.2 lib/clean_architecture/interfaces/use_case_actor.rb
clean-architecture-5.0.1 lib/clean_architecture/interfaces/use_case_actor.rb
clean-architecture-4.0.1 lib/clean_architecture/interfaces/use_case_actor.rb
clean-architecture-4.0.0 lib/clean_architecture/interfaces/use_case_actor.rb
clean-architecture-3.0.2 lib/clean_architecture/interfaces/use_case_actor.rb
clean-architecture-3.0.1 lib/clean_architecture/interfaces/use_case_actor.rb
clean-architecture-3.0.0 lib/clean_architecture/interfaces/use_case_actor.rb