Class: Sapphire::Testing::ResultsList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, results, id) ⇒ ResultsList

Returns a new instance of ResultsList.



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

def initialize(text, results, id)
  @myId = id
  @text = text
  @children = results
  @expanded = true
  @count = results.length
end

Instance Attribute Details

#childrenObject (readonly)

Returns the value of attribute children.



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

def children
  @children
end

#myIdObject (readonly)

Returns the value of attribute myId.



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

def myId
  @myId
end

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end