Class: Bio::Shell::Web::Results

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/shell/web.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResults



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

#numberObject

Returns the value of attribute number



69
70
71
# File 'lib/bio/shell/web.rb', line 69

def number
  @number
end

#outputObject

Returns the value of attribute output



69
70
71
# File 'lib/bio/shell/web.rb', line 69

def output
  @output
end

#resultObject

Returns the value of attribute result



69
70
71
# File 'lib/bio/shell/web.rb', line 69

def result
  @result
end

#scriptObject

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