class Mocr::Parser::Route
- Mocr::Parser::Route
- Reference
- Object
Included Modules
- JSON::Serializable
- YAML::Serializable
Defined in:
mocr/parser/route.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .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)
Instance Method Summary
- #body : Hash(String, String) | Nil
- #body=(body : Hash(String, String) | Nil)
- #name : String | Nil
- #name=(name : String | Nil)
- #parent : Route | Nil
- #parent=(parent : Route | Nil)
- #path : String
- #path=(path : String)
- #routes : Array(Route)
- #routes=(routes : Array(Route))
- #status : Int32
- #status=(status : Int32)
- #type : String
- #type=(type : String)
- #url : String
- #verb : Verb
- #verb=(verb : Verb)
Constructor Detail
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)
#