class Orion::Server::Context::ParamHash

Overview

Parameter helper class

Defined in:

orion/server/context_helpers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Context) #

Instance Method Detail

def [](key : String | Symbol) : String #

def []?(key : String | Symbol) : String | Nil #

def has_key?(key : String | Symbol) : Bool #

def keys : Array(String) #

def permit(*keys : String | Symbol) : Hash(String, String) #

Strong parameters


def require(key : String | Symbol) : StrongParams #

def to_h : Hash(String, String) #