class LightService::Context::ReservedKeysVerifier
Public Instance Methods
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
Source
# File lib/light-service/context/key_verifier.rb, line 105 def error_to_throw ReservedKeysInContextError end
Source
# File lib/light-service/context/key_verifier.rb, line 101 def keys violated_keys end
Source
# File lib/light-service/context/key_verifier.rb, line 113 def reserved_keys %i[message error_code current_action organized_by].freeze end
Source
# File lib/light-service/context/key_verifier.rb, line 109 def throw_error_predicate(keys) keys.any? end
Source
# File lib/light-service/context/key_verifier.rb, line 92 def violated_keys (action.promised_keys + action.expected_keys) & reserved_keys end