Class: TentValidator::Runner::Results
- Inherits:
-
Object
- Object
- TentValidator::Runner::Results
- Includes:
- ApiValidator::Mixins::DeepMerge
- Defined in:
- lib/tent-validator/runner.rb
Instance Attribute Summary collapse
-
#results ⇒ Object
readonly
Returns the value of attribute results.
Instance Method Summary collapse
- #as_json(options = {}) ⇒ Object
-
#initialize ⇒ Results
constructor
A new instance of Results.
- #merge!(validator_results) ⇒ Object
Constructor Details
#initialize ⇒ Results
Returns a new instance of Results.
10 11 12 |
# File 'lib/tent-validator/runner.rb', line 10 def initialize @results = {} end |
Instance Attribute Details
#results ⇒ Object (readonly)
Returns the value of attribute results.
9 10 11 |
# File 'lib/tent-validator/runner.rb', line 9 def results @results end |
Instance Method Details
#as_json(options = {}) ⇒ Object
18 19 20 |
# File 'lib/tent-validator/runner.rb', line 18 def as_json( = {}) results end |
#merge!(validator_results) ⇒ Object
14 15 16 |
# File 'lib/tent-validator/runner.rb', line 14 def merge!(validator_results) deep_merge!(results, validator_results.results) end |