class LightService::Context::ReservedKeysVerifier
Public Instance Methods
error_message()
click to toggle source
# File lib/light-service/context/key_verifier.rb, line 96 def error_message "promised or expected keys cannot be a " \ "reserved key: [#{format_keys(violated_keys)}]" end
error_to_throw()
click to toggle source
# File lib/light-service/context/key_verifier.rb, line 105 def error_to_throw ReservedKeysInContextError end
keys()
click to toggle source
# File lib/light-service/context/key_verifier.rb, line 101 def keys violated_keys end
reserved_keys()
click to toggle source
# File lib/light-service/context/key_verifier.rb, line 113 def reserved_keys %i[message error_code current_action organized_by].freeze end
throw_error_predicate(keys)
click to toggle source
# File lib/light-service/context/key_verifier.rb, line 109 def throw_error_predicate(keys) keys.any? end
violated_keys()
click to toggle source
# File lib/light-service/context/key_verifier.rb, line 92 def violated_keys (action.promised_keys + action.expected_keys) & reserved_keys end