Class: Sapphire::Testing::ScenarioResult

Inherits:
Object
  • Object
show all
Defined in:
lib/sapphire/Testing/ScenarioResult.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text) ⇒ ScenarioResult

Returns a new instance of ScenarioResult.



9
10
11
12
13
14
15
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 9

def initialize(text)
  @text = text
  @results = []
  @leaf = true
  @myId = -1
  @type = 'pass'
end

Instance Attribute Details

#myIdObject

Returns the value of attribute myId.



6
7
8
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 6

def myId
  @myId
end

#resultsObject (readonly)

Returns the value of attribute results.



5
6
7
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 5

def results
  @results
end

#typeObject (readonly)

Returns the value of attribute type.



7
8
9
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 7

def type
  @type
end

Instance Method Details

#AddChild(result) ⇒ Object



17
18
19
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 17

def AddChild(result)
  @results << result
end

#set_id(id) ⇒ Object



21
22
23
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 21

def set_id(id)
  @myId = id
end

#set_type(type) ⇒ Object



25
26
27
# File 'lib/sapphire/Testing/ScenarioResult.rb', line 25

def set_type(type)
  @type = type
end