Class: Gem::Skill::Runner::Result

Inherits:
Data
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error

Returns:

  • (Object)

    the current value of error



11
12
13
# File 'lib/gem/skill/runner.rb', line 11

def error
  @error
end

#verify_fixedObject (readonly)

Returns the value of attribute verify_fixed

Returns:

  • (Object)

    the current value of 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(message) = new(error: message, 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

Returns:

  • (Boolean)


12
# File 'lib/gem/skill/runner.rb', line 12

def ok? = error.nil?