class LightService::Context::ReservedKeysViaOrganizerVerifier
Public Class Methods
new(context_data)
click to toggle source
rubocop:disable Lint/MissingSuper
# File lib/light-service/context/key_verifier.rb, line 120 def initialize(context_data) @context = LightService::Context.make(context_data) end
Public Instance Methods
error_message()
click to toggle source
# File lib/light-service/context/key_verifier.rb, line 129 def error_message <<~ERR reserved keys cannot be added to the context reserved key: [#{format_keys(violated_keys)}] ERR end
violated_keys()
click to toggle source
rubocop:enable Lint/MissingSuper
# File lib/light-service/context/key_verifier.rb, line 125 def violated_keys context.keys.map(&:to_sym) & reserved_keys end