class GraphqlDevise::MountMethod::OptionSanitizer
Public Class Methods
new(options = {}, supported_options = MountMethod::SUPPORTED_OPTIONS)
click to toggle source
# File lib/graphql_devise/mount_method/option_sanitizer.rb, line 8 def initialize(options = {}, supported_options = MountMethod::SUPPORTED_OPTIONS) @options = options @supported_options = supported_options end
Public Instance Methods
call!()
click to toggle source
# File lib/graphql_devise/mount_method/option_sanitizer.rb, line 13 def call! @supported_options.each_with_object(Struct.new(*@supported_options.keys).new) do |(key, checker), result| result[key] = checker.call!(@options[key], key) end end