class Oxide::Types::EnumType
- Oxide::Types::EnumType
- Oxide::Type
- Reference
- Object
Defined in:
oxide/types/enum_type.crConstructors
Instance Method Summary
- #applied_directives : Array(AppliedDirective)
- #coerce(value : String) : CoercedInput
- #coerce(value) : CoercedInput
- #description : String | Nil
- #input_type? : Bool
- #kind
- #name : String
- #output_type? : Bool
- #serialize(value) : SerializedOutput
- #values : Array(EnumValue)
Instance methods inherited from class Oxide::Type
coerce(value) : CoercedInput
coerce,
description
description,
input_type? : Bool
input_type?,
name
name,
output_type? : Bool
output_type?,
serialize(value) : SerializedOutput
serialize,
unwrap(schema : Schema)
unwrap
Instance methods inherited from module Oxide::Visitable
accept(visitor : Visitor)
accept
Constructor Detail
def self.new(name : String, values : Array(Oxide::Types::EnumValue), description : Nil | String = nil, applied_directives : Array(Oxide::AppliedDirective) = [] of AppliedDirective)
#