class GraphQL::Schema::Wrapper

Attributes

of_type[R]

@return [Class, Module] The inner type of this wrapping type, the type of which one or more objects may be present.

Public Class Methods

new(of_type) click to toggle source
# File lib/graphql/schema/wrapper.rb, line 12
def initialize(of_type)
  @of_type = of_type
end

Public Instance Methods

==(other) click to toggle source
# File lib/graphql/schema/wrapper.rb, line 24
def ==(other)
  self.class == other.class && of_type == other.of_type
end
to_graphql() click to toggle source
# File lib/graphql/schema/wrapper.rb, line 16
def to_graphql
  raise GraphQL::RequiredImplementationMissingError
end
unwrap() click to toggle source
# File lib/graphql/schema/wrapper.rb, line 20
def unwrap
  @of_type.unwrap
end