Class: TentValidator::Runner::Results

Inherits:
Object
  • Object
show all
Includes:
ApiValidator::Mixins::DeepMerge
Defined in:
lib/tent-validator/runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResults

Returns a new instance of Results.



10
11
12
# File 'lib/tent-validator/runner.rb', line 10

def initialize
  @results = {}
end

Instance Attribute Details

#resultsObject (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(options = {})
  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