Class: Sapphire::Testing::ResultsList
- Defined in:
- lib/sapphire/Testing/ResultList.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
readonly
Returns the value of attribute children.
-
#myId ⇒ Object
readonly
Returns the value of attribute myId.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, results, id) ⇒ ResultsList
constructor
A new instance of ResultsList.
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
#children ⇒ Object (readonly)
Returns the value of attribute children.
7 8 9 |
# File 'lib/sapphire/Testing/ResultList.rb', line 7 def children @children end |
#myId ⇒ Object (readonly)
Returns the value of attribute myId.
5 6 7 |
# File 'lib/sapphire/Testing/ResultList.rb', line 5 def myId @myId end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
6 7 8 |
# File 'lib/sapphire/Testing/ResultList.rb', line 6 def text @text end |