class Mocr::Parser::Route

Included Modules

Defined in:

mocr/parser/route.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(path : String, name : String | Nil = nil, parent : Route | Nil = nil, type : String = "echo", verb : Verb = Verb::GET, status : Int32 = 200, body : Hash(String, String) = {} of String => String, routes : Array(Route) = [] of Route) #

[View source]

Instance Method Detail

def body : Hash(String, String) | Nil #

[View source]
def body=(body : Hash(String, String) | Nil) #

[View source]
def name : String | Nil #

[View source]
def name=(name : String | Nil) #

[View source]
def parent : Route | Nil #

[View source]
def parent=(parent : Route | Nil) #

[View source]
def path : String #

[View source]
def path=(path : String) #

[View source]
def routes : Array(Route) #

[View source]
def routes=(routes : Array(Route)) #

[View source]
def status : Int32 #

[View source]
def status=(status : Int32) #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]
def url : String #

[View source]
def verb : Verb #

[View source]
def verb=(verb : Verb) #

[View source]