Class: ConvenientService::Commands::IsService
- Inherits:
-
Support::Command
- Object
- Support::Command
- ConvenientService::Commands::IsService
- Defined in:
- lib/convenient_service/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 Support::Command
Constructor Details
#initialize(service:) ⇒ void
16 17 18 |
# File 'lib/convenient_service/commands/is_service.rb', line 16 def initialize(service:) @service = service end |
Instance Attribute Details
#service ⇒ Object (readonly)
Returns the value of attribute service.
10 11 12 |
# File 'lib/convenient_service/commands/is_service.rb', line 10 def service @service end |
Instance Method Details
#call ⇒ Boolean
23 24 25 |
# File 'lib/convenient_service/commands/is_service.rb', line 23 def call Commands::IsServiceClass[service_class: service.class] end |