class Vermillion::Helper::Results

Attributes

bucket[R]

Internal array to hold all the result values

Public Class Methods

new() click to toggle source

Create the Results object

# File lib/client/helper/results.rb, line 8
def initialize
  @bucket = []
  @bucket
end

Public Instance Methods

add(result) click to toggle source

Add a result for processing Params:

result

The value you want to store

# File lib/client/helper/results.rb, line 16
def add(result)
  @bucket.push(result)
  result
end
should_eval_to(pass_value) click to toggle source

Check if all values match a specified value Params:

pass_value

What all values in the array should evaluate to

# File lib/client/helper/results.rb, line 24
def should_eval_to(pass_value)
  @bucket.all? == pass_value
end