Class: PseudoExample
- Inherits:
-
Object
- Object
- PseudoExample
- Defined in:
- lib/onlyoffice_tcm_helper/models/pseudo_example.rb
Overview
class is describe object like RSpec::Core::Example
Direct Known Subclasses
PseudoExampleAborted, PseudoExampleFailed, PseudoExampleLPV, PseudoExamplePassed, PseudoExamplePending, PseudoExamplePendingButPassed, PseudoExampleServiceUnavailable
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#execution_result ⇒ Object
readonly
Returns the value of attribute execution_result.
Instance Method Summary collapse
-
#exception ⇒ nil
Non-existing exception.
-
#initialize(description = 'Check something', started_at = Time.now) ⇒ PseudoExample
constructor
A new instance of PseudoExample.
-
#metadata ⇒ Hash
Metadata of class.
-
#pending? ⇒ false
Is example pending.
Constructor Details
#initialize(description = 'Check something', started_at = Time.now) ⇒ PseudoExample
Returns a new instance of PseudoExample.
8 9 10 11 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 8 def initialize(description = 'Check something', started_at = Time.now) @description = description @execution_result = ExecutingResult.new(started_at) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 6 def description @description end |
#execution_result ⇒ Object (readonly)
Returns the value of attribute execution_result.
6 7 8 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 6 def execution_result @execution_result end |
Instance Method Details
#exception ⇒ nil
Returns non-existing exception.
23 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 23 def exception; end |
#metadata ⇒ Hash
Returns metadata of class.
14 15 16 17 18 19 20 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 14 def { description: @description, execution_result: @execution_result, absolute_file_path: __FILE__ } end |
#pending? ⇒ false
Returns is example pending.
26 27 28 |
# File 'lib/onlyoffice_tcm_helper/models/pseudo_example.rb', line 26 def pending? false end |