Class: Gem::Skill::Runner::Result
- Inherits:
-
Data
- Object
- Data
- Gem::Skill::Runner::Result
- Defined in:
- lib/gem/skill/runner.rb
Overview
error: nil on success, message string on failure verify_fixed: true when –verify ran and corrected the skill
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#verify_fixed ⇒ Object
readonly
Returns the value of attribute verify_fixed.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
11 12 13 |
# File 'lib/gem/skill/runner.rb', line 11 def error @error end |
#verify_fixed ⇒ Object (readonly)
Returns the value of attribute verify_fixed
11 12 13 |
# File 'lib/gem/skill/runner.rb', line 11 def verify_fixed @verify_fixed end |
Class Method Details
.failure(message) ⇒ Object
14 |
# File 'lib/gem/skill/runner.rb', line 14 def self.failure() = new(error: , verify_fixed: false) |
.success(verify_fixed: false) ⇒ Object
15 |
# File 'lib/gem/skill/runner.rb', line 15 def self.success(verify_fixed: false) = new(error: nil, verify_fixed: verify_fixed) |
Instance Method Details
#ok? ⇒ Boolean
12 |
# File 'lib/gem/skill/runner.rb', line 12 def ok? = error.nil? |