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) #

[View source]

Instance Method Detail

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

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

[View source]
def has_key?(key : String | Symbol) : Bool #

[View source]
def keys : Array(String) #

[View source]
def permit(*keys : String | Symbol) : Hash(String, String) #

Strong parameters


[View source]
def require(key : String | Symbol) : StrongParams #

[View source]
def to_h : Hash(String, String) #

[View source]