Class: LightService::Context::ExpectedKeyVerifier
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
Instance Method Details
#error_to_throw ⇒ Object
64
65
66
|
# File 'lib/light-service/context/key_verifier.rb', line 64
def error_to_throw
ExpectedKeysNotInContextError
end
|
#keys ⇒ Object
60
61
62
|
# File 'lib/light-service/context/key_verifier.rb', line 60
def keys
action.expected_keys
end
|
#throw_error_predicate(keys) ⇒ Object
68
69
70
|
# File 'lib/light-service/context/key_verifier.rb', line 68
def throw_error_predicate(keys)
!are_all_keys_in_context?(keys)
end
|
#type_name ⇒ Object
56
57
58
|
# File 'lib/light-service/context/key_verifier.rb', line 56
def type_name
"expected"
end
|