Class: FunctionalLightService::Context::ExpectedKeyVerifier

Inherits:
KeyVerifier show all
Defined in:
lib/functional-light-service/context/key_verifier.rb

Instance Attribute Summary

Attributes inherited from KeyVerifier

#action, #context

Instance Method Summary collapse

Methods inherited from KeyVerifier

#are_all_keys_in_context?, #error_message, #format_keys, #initialize, #keys_not_found, #verify, verify_keys

Constructor Details

This class inherits a constructor from FunctionalLightService::Context::KeyVerifier

Instance Method Details

#error_to_throwObject



64
65
66
# File 'lib/functional-light-service/context/key_verifier.rb', line 64

def error_to_throw
  ExpectedKeysNotInContextError
end

#keysObject



60
61
62
# File 'lib/functional-light-service/context/key_verifier.rb', line 60

def keys
  action.expected_keys
end

#throw_error_predicate(keys) ⇒ Object



68
69
70
# File 'lib/functional-light-service/context/key_verifier.rb', line 68

def throw_error_predicate(keys)
  !are_all_keys_in_context?(keys)
end

#type_nameObject



56
57
58
# File 'lib/functional-light-service/context/key_verifier.rb', line 56

def type_name
  "expected"
end