Class: ConvenientService::Service::Configs::Standard::Commands::IsService
- Inherits:
-
ConvenientService::Support::Command
- Object
- ConvenientService::Support::Command
- ConvenientService::Service::Configs::Standard::Commands::IsService
- Defined in:
- lib/convenient_service/service/configs/standard/commands/is_service.rb
Instance Attribute Summary collapse
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #call ⇒ Boolean
- #initialize(service:) ⇒ void constructor
Methods inherited from ConvenientService::Support::Command
Constructor Details
#initialize(service:) ⇒ void
24 25 26 |
# File 'lib/convenient_service/service/configs/standard/commands/is_service.rb', line 24 def initialize(service:) @service = service end |
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
18 19 20 |
# File 'lib/convenient_service/service/configs/standard/commands/is_service.rb', line 18 def service @service end |
Instance Method Details
#call ⇒ Boolean
31 32 33 |
# File 'lib/convenient_service/service/configs/standard/commands/is_service.rb', line 31 def call Commands::IsServiceClass[service_class: service.class] end |