Class: Webmention::Verification::Verifiers::JsonVerifier::DeepLocator

Inherits:
Object
  • Object
show all
Defined in:
lib/webmention/verification/verifiers/json_verifier.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json, pattern) ⇒ DeepLocator

Returns a new instance of DeepLocator.



18
19
20
21
# File 'lib/webmention/verification/verifiers/json_verifier.rb', line 18

def initialize(json, pattern)
  @json = json
  @pattern = pattern
end

Class Method Details

.values_for(object) ⇒ Object



27
28
29
# File 'lib/webmention/verification/verifiers/json_verifier.rb', line 27

def self.values_for(object)
  object.is_a?(Hash) ? object.values : object.entries
end

Instance Method Details

#resultsObject



23
24
25
# File 'lib/webmention/verification/verifiers/json_verifier.rb', line 23

def results
  @results ||= build_results(comparator, @json)
end