Class: Parametric::Results
- Inherits:
-
Object
- Object
- Parametric::Results
- Defined in:
- lib/parametric/results.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(output, errors) ⇒ Results
constructor
A new instance of Results.
- #valid? ⇒ Boolean
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
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
5 6 7 |
# File 'lib/parametric/results.rb', line 5 def errors @errors end |
#output ⇒ Object (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
11 12 13 |
# File 'lib/parametric/results.rb', line 11 def valid? !errors.keys.any? end |