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



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

def error_to_throw
  ExpectedKeysNotInContextError
end

#keysObject



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

def keys
  action.expected_keys
end

#throw_error_predicate(keys) ⇒ Object



71
72
73
# File 'lib/functional-light-service/context/key_verifier.rb', line 71

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

#type_nameObject



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

def type_name
  "expected"
end