Class: Paradocs::Results
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
-
#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, environment) ⇒ Results
constructor
A new instance of Results.
- #valid? ⇒ Boolean
Constructor Details
#initialize(output, errors, environment) ⇒ Results
Returns a new instance of Results.
5 6 7 |
# File 'lib/paradocs/results.rb', line 5 def initialize(output, errors, environment) @output, @errors, @environment = output, errors, environment end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
3 4 5 |
# File 'lib/paradocs/results.rb', line 3 def environment @environment end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/paradocs/results.rb', line 3 def errors @errors end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
3 4 5 |
# File 'lib/paradocs/results.rb', line 3 def output @output end |
Instance Method Details
#valid? ⇒ Boolean
9 10 11 |
# File 'lib/paradocs/results.rb', line 9 def valid? !errors.keys.any? end |