class Flow::Result(H)
- Flow::Result(H)
- Reference
- Object
Included Modules
Defined in:
flow/result.crConstructors
Instance Method Summary
- #data : H
- #data=(data : H)
- #failure?
- #is_success : Bool
- #is_success=(is_success : Bool)
- #merge_data(input : Hash)
- #on_exception(&block : Flow::Result(H) -> U) : Flow::Result forall U
- #on_failure(result_type_sym : String, &block : Flow::Result(H) -> U) : Flow::Result forall U
- #on_failure(result_types : Array(String), &block : Flow::Result(H) -> U) : Flow::Result forall U
- #on_failure(&block : Flow::Result(H) -> U) : Flow::Result forall U
- #on_failure(*result_types, &block : Flow::Result(H) -> U) : Flow::Result forall U
- #on_success(&block : Flow::Result(H) -> U) : Flow::Result forall U
- #result_type : String
- #result_type=(result_type : String)
- #success?
- #then(step : Flow::Step.class, params : U) : Flow::Result forall U
- #then(step : Flow::Step.class) : Flow::Result forall U
Instance methods inherited from module Flow::Response::Helpers
error_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Responseerror_response(body : JSON::Any, status : HTTP::Status = HTTP::Status::BAD_REQUEST) : Flow::Response error_response, json_response(body : JSON::Any, status : HTTP::Status = HTTP::Status::OK) : Flow::Response
json_response(body : NamedTuple | Hash, status : HTTP::Status = HTTP::Status::OK) : Flow::Response json_response, response_body response_body, response_status response_status, returned? returned?
Constructor Detail
Instance Method Detail
def on_failure(result_types : Array(String), &block : Flow::Result(H) -> U) : Flow::Result forall U
#