Class: ConvenientService::Support::DependencyContainer::Commands::AssertValidScope Private
- Inherits:
-
Command
- Object
- Command
- ConvenientService::Support::DependencyContainer::Commands::AssertValidScope
- Defined in:
- lib/convenient_service/support/dependency_container/commands/assert_valid_scope.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
- #scope ⇒ Object readonly private
Instance Method Summary collapse
- #call ⇒ void private
- #initialize(scope:) ⇒ void constructor private
Methods inherited from Command
Constructor Details
#initialize(scope:) ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
23 24 25 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_scope.rb', line 23 def initialize(scope:) @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_scope.rb', line 17 def scope @scope end |
Instance Method Details
#call ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
31 32 33 |
# File 'lib/convenient_service/support/dependency_container/commands/assert_valid_scope.rb', line 31 def call ::ConvenientService.raise Exceptions::InvalidScope.new(scope: scope) unless Constants::SCOPES.include?(scope) end |