class Oxide::Types::UnionType
- Oxide::Types::UnionType
- Oxide::Type
- Reference
- Object
Defined in:
oxide/types/union_type.crConstructors
Instance Method Summary
- #applied_directives : Array(AppliedDirective)
- #coerce(value) : CoercedInput
- #description : String | Nil
- #input_type? : Bool
- #kind
- #name : String
- #output_type? : Bool
- #possible_types : Array(Oxide::Type)
- #serialize(value) : SerializedOutput
- #type_resolver : TypeResolver
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)
#