class Oxide::Types::UnionType

Defined in:

oxide/types/union_type.cr

Constructors

Instance Method Summary

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, type_resolver : Oxide::TypeResolver, description : Nil | String = nil, possible_types : Array(Oxide::Type) = [] of Oxide::Type, applied_directives : Array(Oxide::AppliedDirective) = [] of AppliedDirective) #

[View source]

Instance Method Detail

def applied_directives : Array(AppliedDirective) #

[View source]
def coerce(value) : CoercedInput #

[View source]
def description : String | Nil #

[View source]
def input_type? : Bool #

[View source]
def kind #

[View source]
def name : String #

[View source]
def output_type? : Bool #

[View source]
def possible_types : Array(Oxide::Type) #

[View source]
def serialize(value) : SerializedOutput #

[View source]
def type_resolver : TypeResolver #

[View source]