Class: Cohere::Transcribe::Doctor::Results
- Inherits:
-
Object
- Object
- Cohere::Transcribe::Doctor::Results
- Defined in:
- lib/cohere/transcribe/doctor.rb
Instance Attribute Summary collapse
-
#failures ⇒ Object
readonly
Returns the value of attribute failures.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
- #fail(message) ⇒ Object
-
#initialize(out: $stdout) ⇒ Results
constructor
A new instance of Results.
- #ok(message) ⇒ Object
- #warn(message) ⇒ Object
Constructor Details
#initialize(out: $stdout) ⇒ Results
Returns a new instance of Results.
47 48 49 50 51 |
# File 'lib/cohere/transcribe/doctor.rb', line 47 def initialize(out: $stdout) @out = out @failures = 0 @warnings = 0 end |
Instance Attribute Details
#failures ⇒ Object (readonly)
Returns the value of attribute failures.
45 46 47 |
# File 'lib/cohere/transcribe/doctor.rb', line 45 def failures @failures end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
45 46 47 |
# File 'lib/cohere/transcribe/doctor.rb', line 45 def warnings @warnings end |
Instance Method Details
#fail(message) ⇒ Object
62 63 64 65 |
# File 'lib/cohere/transcribe/doctor.rb', line 62 def fail() @failures += 1 @out.puts("[FAIL] #{}") end |
#ok(message) ⇒ Object
53 54 55 |
# File 'lib/cohere/transcribe/doctor.rb', line 53 def ok() @out.puts("[OK] #{}") end |
#warn(message) ⇒ Object
57 58 59 60 |
# File 'lib/cohere/transcribe/doctor.rb', line 57 def warn() @warnings += 1 @out.puts("[WARN] #{}") end |