class TandaCLI::API::Result(T)

Defined in:

tanda_cli/api/result.cr

Constructors

Instance methods inherited from class TandaCLI::Result(T, TandaCLI::Types::Error)

or(& : E -> U) : T | U forall U or

Constructor methods inherited from class TandaCLI::Result(T, TandaCLI::Types::Error)

new(value : T | E) new

Constructor Detail

def self.from(response : HTTP::Client::Response) : self #

[View source]
def self.from(response : HTTP::Client::Response, & : T -> T | E) : self #

allows additional processing on a successful response


[View source]
def self.new(value : T | E) #

[View source]