class
AzuCLI::Generate::Request
- AzuCLI::Generate::Request
- Teeplate::FileTree
- Reference
- Object
Overview
Request generator that creates request structs for request validation Aligns with Azu::Request convention
Defined in:
azu_cli/generators/request.crConstant Summary
-
OUTPUT_DIR =
"./src/requests"
Constructors
Class Method Summary
Instance Method Summary
-
#____collect_files(____files)
:nodoc:
- #__ecr0(____io)
- #__ecr10(____io)
- #__ecr12(____io)
- #__ecr2(____io)
- #__ecr4(____io)
- #__ecr6(____io)
- #__ecr8(____io)
- #action : String
- #camelcase_name : String
- #fields : FieldCollection
-
#full_module_name : String
Get the full nested module name for the request
- #module_name : String
- #name : String
- #project : String
-
#request_struct_name : String
Get the request struct name
- #resource : String
- #snake_case_name : String
Constructor Detail
def self.new(project : String, resource : String, action : String, attributes : Hash(String, String))
#
Class Method Detail
def self.generate_for_scaffold(project : String, resource : String, actions : Array(String), attributes : Hash(String, String))
#