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.



22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/kensho/rspec/state.rb', line 22

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 = []
  @parameters = []
  @tags = []
  @behavior = {}
  @severity = nil
  @owner = nil
  @description = nil
  @flaky = false
  @muted = false
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

#behaviorObject

Returns the value of attribute behavior.



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

def behavior
  @behavior
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

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
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

#flakyObject

Returns the value of attribute flaky.



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

def flaky
  @flaky
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

#mutedObject

Returns the value of attribute muted.



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

def muted
  @muted
end

#ownerObject

Returns the value of attribute owner.



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

def owner
  @owner
end

#parametersObject

Returns the value of attribute parameters.



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

def parameters
  @parameters
end

#severityObject

Returns the value of attribute severity.



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

def severity
  @severity
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

#tagsObject

Returns the value of attribute tags.



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

def tags
  @tags
end