abstract class CA::Service(Request, Result)

Defined in:

clean-architectures/service.cr

Instance Method Summary

Instance Method Detail

def assert(assertion, body : String | ErrorBody, status : HTTP::Status) #

Validation step


[View source]
def call(request : Request) #

[View source]
def error(body : String | ErrorBody, status : HTTP::Status) #

[View source]
abstract def execute(request : Request) #

[View source]
def ok #

[View source]
def success(value : Result) #

Execute step


[View source]
abstract def validate(request : Request) #

[View source]