Class: Webmention::Verification::Verifiers::JsonVerifier::DeepLocator
- Inherits:
-
Object
- Object
- Webmention::Verification::Verifiers::JsonVerifier::DeepLocator
- Defined in:
- lib/webmention/verification/verifiers/json_verifier.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json, pattern) ⇒ DeepLocator
constructor
A new instance of DeepLocator.
- #results ⇒ Object
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
#results ⇒ Object
23 24 25 |
# File 'lib/webmention/verification/verifiers/json_verifier.rb', line 23 def results @results ||= build_results(comparator, @json) end |