Class: Parametric::Results

Inherits:
Object
  • Object
show all
Defined in:
lib/parametric/results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(output, errors) ⇒ Results

Returns a new instance of Results.



7
8
9
# File 'lib/parametric/results.rb', line 7

def initialize(output, errors)
  @output, @errors = output, errors
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



5
6
7
# File 'lib/parametric/results.rb', line 5

def errors
  @errors
end

#outputObject (readonly)

Returns the value of attribute output.



5
6
7
# File 'lib/parametric/results.rb', line 5

def output
  @output
end

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/parametric/results.rb', line 11

def valid?
  !errors.keys.any?
end