Class: GraphQL::Schema::Wrapper
Instance Attribute Summary collapse
Instance Method Summary
collapse
#kind, #list?, #non_null?, #to_list_type, #to_non_null_type, #to_type_signature
Constructor Details
#initialize(of_type) ⇒ Wrapper
Returns a new instance of Wrapper.
15
16
17
|
# File 'lib/graphql/schema/wrapper.rb', line 15
def initialize(of_type)
@of_type = of_type
end
|
Instance Attribute Details
Returns
Class, Module — The inner type of this wrapping type, the type of which one or more objects may be present.
13
14
15
|
# File 'lib/graphql/schema/wrapper.rb', line 13
def of_type
@of_type
end
|
Instance Method Details
#==(other) ⇒ Object
29
30
31
|
# File 'lib/graphql/schema/wrapper.rb', line 29
def ==(other)
self.class == other.class && of_type == other.of_type
end
|
#deconstruct_keys(_keys) ⇒ Object
33
34
35
|
# File 'lib/graphql/schema/wrapper.rb', line 33
def deconstruct_keys(_keys)
{ of_type: of_type }
end
|
23
24
25
26
27
|
# File 'lib/graphql/schema/wrapper.rb', line 23
def freeze
unwrap
to_type_signature
super
end
|
19
20
21
|
# File 'lib/graphql/schema/wrapper.rb', line 19
def unwrap
@unwrapped ||= @of_type.unwrap
end
|