Module: ConvenientService::Service::Configs::Standard Private
- Includes:
- Config, ConvenientService::Service::Core
- Defined in:
- lib/convenient_service/service/configs/standard.rb,
lib/convenient_service/service/configs/standard/v1.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Default configuration for the user-defined services.
Defined Under Namespace
Modules: V1
Class Method Summary collapse
-
.service?(service) ⇒ Boolean
Checks whether an object is a service instance.
-
.service_class?(service_class) ⇒ Boolean
Checks whether a class is a service class.
Methods included from Core
Methods included from ConvenientService::Support::Concern
Methods included from Config
Class Method Details
.service?(service) ⇒ Boolean
Checks whether an object is a service instance.
445 446 447 |
# File 'lib/convenient_service/service/configs/standard.rb', line 445 def service?(service) service_class?(service.class) end |
.service_class?(service_class) ⇒ Boolean
Checks whether a class is a service class.
413 414 415 416 417 |
# File 'lib/convenient_service/service/configs/standard.rb', line 413 def service_class?(service_class) return false unless service_class.instance_of?(::Class) service_class.include?(Service::Core) end |