Class: Approvals::Verifiers::JsonVerifier

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

Instance Method Summary collapse

Constructor Details

#initialize(received_path, approved_path) ⇒ JsonVerifier

Returns a new instance of JsonVerifier.



4
5
6
7
# File 'lib/approvals/verifiers/json_verifier.rb', line 4

def initialize(received_path, approved_path)
  self.received_path = received_path
  self.approved_path = approved_path
end

Instance Method Details

#verifyObject



9
10
11
# File 'lib/approvals/verifiers/json_verifier.rb', line 9

def verify
  approved == received
end