Class: Bio::Shell::Web::Results
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#output ⇒ Object
Returns the value of attribute output.
-
#result ⇒ Object
Returns the value of attribute result.
-
#script ⇒ Object
Returns the value of attribute script.
Instance Method Summary collapse
-
#initialize ⇒ Results
constructor
A new instance of Results.
- #restore(number) ⇒ Object
- #store(script, result, output) ⇒ Object
Constructor Details
#initialize ⇒ Results
Returns a new instance of Results.
71 72 73 74 75 76 |
# File 'lib/bio/shell/web.rb', line 71 def initialize @number = 0 @script = [] @result = [] @output = [] end |
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
69 70 71 |
# File 'lib/bio/shell/web.rb', line 69 def number @number end |
#output ⇒ Object
Returns the value of attribute output.
69 70 71 |
# File 'lib/bio/shell/web.rb', line 69 def output @output end |
#result ⇒ Object
Returns the value of attribute result.
69 70 71 |
# File 'lib/bio/shell/web.rb', line 69 def result @result end |
#script ⇒ Object
Returns the value of attribute script.
69 70 71 |
# File 'lib/bio/shell/web.rb', line 69 def script @script end |
Instance Method Details
#restore(number) ⇒ Object
86 87 88 |
# File 'lib/bio/shell/web.rb', line 86 def restore(number) return @script[number], @result[number], @output[number] end |
#store(script, result, output) ⇒ Object
78 79 80 81 82 83 84 |
# File 'lib/bio/shell/web.rb', line 78 def store(script, result, output) @number += 1 @script[@number] = script @result[@number] = result @output[@number] = output return @number end |