module Lucky::ParamParser

Defined in:

lucky/param_parser.cr

Constant Summary

TIME_FORMATS = [Time::Format::ISO_8601_DATE_TIME, Time::Format::RFC_2822, Time::Format::RFC_3339, Time::Format.new("%Y-%m-%dT%H:%M:%S", Time::Location::UTC), Time::Format.new("%Y-%m-%dT%H:%M", Time::Location::UTC), Time::Format::HTTP_DATE, Time::Format::ISO_8601_DATE, Time::Format::ISO_8601_TIME]

Class Method Summary

Class Method Detail

def self.parse(param : String, klass : String.class) : String #

[View source]
def self.parse(param : String, klass : Int16.class) : Int16 | Nil #

[View source]
def self.parse(param : String, klass : Int32.class) : Int32 | Nil #

[View source]
def self.parse(param : String, klass : Int64.class) : Int64 | Nil #

[View source]
def self.parse(param : String, klass : Float64.class) : Float64 | Nil #

[View source]
def self.parse(param : String, klass : Bool.class) : Bool | Nil #

[View source]
def self.parse(param : String, klass : UUID.class) : UUID | Nil #

[View source]
def self.parse(param : String, klass : Time.class) : Time | Nil #

[View source]
def self.parse(param : Array(String), klass : Array(T).class) : Array(T) | Nil forall T #

[View source]