Class: ConvenientService::Support::Command Abstract Private

Inherits:
Object
  • Object
show all
Defined in:
lib/convenient_service/support/command.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.

This class is abstract.

Subclass and override #initialize and #call to implement a Command.

Since:

  • 1.0.0

Direct Known Subclasses

Common::Plugins::CanHaveUserProvidedEntity::Commands::FindOrCreateEntity, Common::Plugins::HasInstanceProxy::Commands::CreateInstanceProxyClass, Config::Commands::NormalizeOptions, Core::Entities::Config::Commands::CreateEntityClass, Core::Entities::Config::Commands::FindEntityClass, Core::Entities::Config::Commands::FindOrCreateEntityClass, Core::Entities::Config::Commands::TrackMethodMissingCommitTrigger, Core::Entities::Config::Entities::Concerns::Entities::Middleware::Commands::CastMiddleware, Core::Entities::Config::Entities::MethodMiddlewares::Commands::GenerateStackName, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Caller::Commands::CastCaller, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Caller::Commands::DefineMethodCallers, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Caller::Commands::UndefineMethodCallers, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Container::Commands::CastContainer, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Container::Commands::ResolveMethodsMiddlewaresCallers, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Middlewares::Base::Commands::CreateObservableMiddleware, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Middlewares::Chain::Commands::CreateObservableMiddleware, Core::Entities::Config::Entities::MethodMiddlewares::Entities::Middlewares::Chain::Commands::NormalizeEnv, Feature::Plugins::CanHaveEntries::Commands::DefineEntries, Feature::Plugins::CanHaveEntries::Commands::DefineEntry, Feature::Plugins::CanHaveStubbedEntries::Commands::FetchAllFeaturesStubbedEntriesCache, Feature::Plugins::CanHaveStubbedEntries::Commands::FetchFeatureStubbedEntriesCache, Feature::Plugins::CanHaveStubbedEntries::Commands::SetFeatureStubbedEntry, RSpec::Helpers::Classes::IgnoringException, RSpec::Helpers::Classes::InThreads, RSpec::Helpers::Classes::StubEntry, RSpec::Helpers::Classes::StubService, RSpec::Helpers::Classes::WrapMethod, RSpec::Matchers::Classes::DelegateTo::Commands::GeneratePrintableMethod, RSpec::Matchers::Classes::DelegateTo::Entities::SubMatchers::Arguments::Commands::ApplyStubToTrackDelegations, RSpec::Matchers::Classes::DelegateTo::Entities::SubMatchers::Arguments::Commands::GeneratePrintableArguments, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedCodePart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedDataPart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedMessagePart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedParts, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedServicePart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedStatusPart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateExpectedStepPart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateGotParts, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateGotServicePart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base::Commands::GenerateGotStepPart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Error::Commands::GenerateGotJsendAttributesPart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Failure::Commands::GenerateGotJsendAttributesPart, RSpec::Matchers::Classes::Results::Base::Entities::Printers::Success::Commands::GenerateGotJsendAttributesPart, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResult, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultCode, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultData, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultMessage, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultOriginalService, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultService, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultStatus, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultStep, RSpec::Matchers::Classes::Results::Base::Entities::Validator::Commands::ValidateResultType, ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Commands::CastStepAwareEnumerable, ConvenientService::Service::Plugins::CanHaveStepAwareEnumerables::Commands::CastStepAwareEnumerator, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethod, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethodFactory, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::DefineMethodInContainer, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Commands::CastParams, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Commands::ExtractParams, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeMethodStep::Commands::CalculateMethodResult, ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeServiceStep::Commands::CalculateServiceResult, ConvenientService::Service::Plugins::CanHaveStubbedResults::Commands::FetchAllServicesStubbedResultsCache, ConvenientService::Service::Plugins::CanHaveStubbedResults::Commands::FetchServiceStubbedResultsCache, ConvenientService::Service::Plugins::CanHaveStubbedResults::Commands::SetServiceStubbedResult, ConvenientService::Service::Plugins::CollectsServicesInException::Commands::ExtractServiceDetails, ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::HasAmazingPrintInspect::Commands::GenerateInspectOutput, ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::HasAwesomePrintInspect::Commands::GenerateInspectOutput, ConvenientService::Service::Plugins::HasJSendResult::Entities::Result::Plugins::HasJSendStatusAndAttributes::Commands::CastJSendAttributes, ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatBacktrace, ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatCause, ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatClass, ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatException, ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatLine, ConvenientService::Service::Plugins::RescuesResultUnhandledExceptions::Commands::FormatMessage, DependencyContainer::Commands::AssertValidContainer, DependencyContainer::Commands::AssertValidMethod, DependencyContainer::Commands::AssertValidScope, DependencyContainer::Commands::CreateMethodsModule, DependencyContainer::Commands::ImportMethod, Utils::Array::ContainExactly, Utils::Array::DropWhile, Utils::Array::FindLast, Utils::Array::FindYield, Utils::Array::KeepAfter, Utils::Array::LimitedPush, Utils::Array::Merge, Utils::Array::Rjust, Utils::Array::Wrap, Utils::Bool::ToBool, Utils::Class::DisplayName, Utils::Class::GetAttachedObject, Utils::Hash::AssertValidKeys, Utils::Hash::Except, Utils::Hash::TripleEqualityCompare, Utils::Kernel::SilenceWarnings, Utils::Method::Defined, Utils::Method::Name::Append, Utils::Method::Remove, Utils::Module::ClassMethodDefined, Utils::Module::FetchOwnConst, Utils::Module::GetNamespace, Utils::Module::GetOwnConst, Utils::Module::GetOwnInstanceMethod, Utils::Module::HasOwnInstanceMethod, Utils::Module::IncludeModule, Utils::Module::InstanceMethodDefined, Utils::Object::ClampClass, Utils::Object::DuckClass, Utils::Object::GetOwnMethod, Utils::Object::InstanceVariableDelete, Utils::Object::InstanceVariableFetch, Utils::Object::MemoizeIncludingFalsyValues, Utils::Object::ResolveType, Utils::Object::SafeSend, Utils::Object::WithOneTimeObject, Utils::Proc::Conjunct, Utils::Proc::Display, Utils::Proc::ExecConfig, Utils::String::Camelize, Utils::String::Demodulize, Utils::String::Enclose, Utils::String::Split, Utils::String::Truncate

Defined Under Namespace

Modules: Exceptions

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializevoid

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 is abstract.

Since:

  • 1.0.0



56
57
# File 'lib/convenient_service/support/command.rb', line 56

def initialize(...)
end

Class Method Details

.[]Object

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.

Returns Can be any type.

Returns:

  • (Object)

    Can be any type.

Since:

  • 1.0.0



47
48
49
# File 'lib/convenient_service/support/command.rb', line 47

def [](...)
  call(...)
end

.callObject

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.

Returns Can be any type.

Returns:

  • (Object)

    Can be any type.

Since:

  • 1.0.0



30
31
32
# File 'lib/convenient_service/support/command.rb', line 30

def call(...)
  new(...).call
end

Instance Method Details

#callObject

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 is abstract.

Returns Can be any type.

Returns:

  • (Object)

    Can be any type.

Raises:

Since:

  • 1.0.0



64
65
66
# File 'lib/convenient_service/support/command.rb', line 64

def call
  ::ConvenientService.raise Exceptions::CallIsNotOverridden.new(command: self)
end