Class: Kensho::RSpec::CaseScratch
- Inherits:
-
Object
- Object
- Kensho::RSpec::CaseScratch
- Defined in:
- lib/kensho/rspec/state.rb
Instance Attribute Summary collapse
-
#attachments ⇒ Object
Returns the value of attribute attachments.
-
#case_id ⇒ Object
Returns the value of attribute case_id.
-
#example_id ⇒ Object
Returns the value of attribute example_id.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#links ⇒ Object
Returns the value of attribute links.
-
#logs ⇒ Object
Returns the value of attribute logs.
-
#started_at_ms ⇒ Object
Returns the value of attribute started_at_ms.
-
#step_stack ⇒ Object
Returns the value of attribute step_stack.
-
#steps ⇒ Object
Returns the value of attribute steps.
Instance Method Summary collapse
-
#initialize(case_id:, example_id:, started_at_ms:) ⇒ CaseScratch
constructor
A new instance of CaseScratch.
Constructor Details
#initialize(case_id:, example_id:, started_at_ms:) ⇒ CaseScratch
Returns a new instance of CaseScratch.
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/kensho/rspec/state.rb', line 20 def initialize(case_id:, example_id:, started_at_ms:) @case_id = case_id @example_id = example_id @started_at_ms = started_at_ms @steps = [] @step_stack = [] @attachments = [] @logs = [] @labels = {} @links = [] end |
Instance Attribute Details
#attachments ⇒ Object
Returns the value of attribute attachments.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def @attachments end |
#case_id ⇒ Object
Returns the value of attribute case_id.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def case_id @case_id end |
#example_id ⇒ Object
Returns the value of attribute example_id.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def example_id @example_id end |
#labels ⇒ Object
Returns the value of attribute labels.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def labels @labels end |
#links ⇒ Object
Returns the value of attribute links.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def links @links end |
#logs ⇒ Object
Returns the value of attribute logs.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def logs @logs end |
#started_at_ms ⇒ Object
Returns the value of attribute started_at_ms.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def started_at_ms @started_at_ms end |
#step_stack ⇒ Object
Returns the value of attribute step_stack.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def step_stack @step_stack end |
#steps ⇒ Object
Returns the value of attribute steps.
17 18 19 |
# File 'lib/kensho/rspec/state.rb', line 17 def steps @steps end |