Class: Kensho::RSpec::CaseScratch

Inherits:
Object
  • Object
show all
Defined in:
lib/kensho/rspec/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#attachmentsObject

Returns the value of attribute attachments.



17
18
19
# File 'lib/kensho/rspec/state.rb', line 17

def attachments
  @attachments
end

#case_idObject

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_idObject

Returns the value of attribute example_id.



17
18
19
# File 'lib/kensho/rspec/state.rb', line 17

def example_id
  @example_id
end

#labelsObject

Returns the value of attribute labels.



17
18
19
# File 'lib/kensho/rspec/state.rb', line 17

def labels
  @labels
end

Returns the value of attribute links.



17
18
19
# File 'lib/kensho/rspec/state.rb', line 17

def links
  @links
end

#logsObject

Returns the value of attribute logs.



17
18
19
# File 'lib/kensho/rspec/state.rb', line 17

def logs
  @logs
end

#started_at_msObject

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_stackObject

Returns the value of attribute step_stack.



17
18
19
# File 'lib/kensho/rspec/state.rb', line 17

def step_stack
  @step_stack
end

#stepsObject

Returns the value of attribute steps.



17
18
19
# File 'lib/kensho/rspec/state.rb', line 17

def steps
  @steps
end