struct Authority::Verification

Defined in:

entities/device_code_entity.cr

Constant Summary

Allowed = Verification.new("allowed")
AUTHORIZED_VALUES = {"allowed" => Allowed, "denied" => Denied, "pending" => Pending}
Denied = Verification.new("denied")
Pending = Verification.new("pending")

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]