struct BuildStatus

Defined in:

bitte_ci/model.cr

Constant Summary

AUTHORIZED_VALUES = {"pending" => Pending, "running" => Running, "complete" => Complete, "failed" => Failed}
Complete = BuildStatus.new("complete")
Failed = BuildStatus.new("failed")
Pending = BuildStatus.new("pending")
Running = BuildStatus.new("running")

Class Method Summary

Class Method Detail

def self.all #

[View source]
def self.authorized_values #

Return the list of authorized values


[View source]
def self.from_string(str : String) #

Return the enum with the string passed as parameter. Throw Clear::IllegalEnumValueError if the string is not found.


[View source]
def self.valid?(x) #

[View source]