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.
46 47 48 49 50 |
# File 'lib/cohere/transcribe/doctor.rb', line 46 def initialize(out: $stdout) @out = out @failures = 0 @warnings = 0 end |
Instance Attribute Details
#failures ⇒ Object (readonly)
Returns the value of attribute failures.
44 45 46 |
# File 'lib/cohere/transcribe/doctor.rb', line 44 def failures @failures end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings.
44 45 46 |
# File 'lib/cohere/transcribe/doctor.rb', line 44 def warnings @warnings end |
Instance Method Details
#fail(message) ⇒ Object
61 62 63 64 |
# File 'lib/cohere/transcribe/doctor.rb', line 61 def fail() @failures += 1 @out.puts("[FAIL] #{}") end |
#ok(message) ⇒ Object
52 53 54 |
# File 'lib/cohere/transcribe/doctor.rb', line 52 def ok() @out.puts("[OK] #{}") end |
#warn(message) ⇒ Object
56 57 58 59 |
# File 'lib/cohere/transcribe/doctor.rb', line 56 def warn() @warnings += 1 @out.puts("[WARN] #{}") end |