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

- (Results) initialize



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

- (Object) number

Returns the value of attribute number



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

def number
  @number
end

- (Object) output

Returns the value of attribute output



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

def output
  @output
end

- (Object) result

Returns the value of attribute result



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

def result
  @result
end

- (Object) script

Returns the value of attribute script



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

def script
  @script
end

Instance Method Details

- (Object) restore(number)



86
87
88
# File 'lib/bio/shell/web.rb', line 86

def restore(number)
  return @script[number], @result[number], @output[number]
end

- (Object) store(script, result, output)



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