Module: ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step::Plugins::CanBeCompleted::Concern
- Includes:
- ConvenientService::Support::Concern
- Defined in:
- lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed/concern.rb
Instance Method Summary collapse
Instance Method Details
#completed? ⇒ Bool
18 19 20 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed/concern.rb', line 18 def completed? Utils.to_bool(internals.cache[:completed]) end |
#mark_as_completed! ⇒ void
This method returns an undefined value.
32 33 34 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed/concern.rb', line 32 def mark_as_completed! internals.cache[:completed] = true end |
#not_completed? ⇒ Bool
25 26 27 |
# File 'lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed/concern.rb', line 25 def not_completed? !completed? end |