Class: GraphQL::Client::Schema::IncludeDirective
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Instance Chain:
self,
BaseType
|
|
| Inherits: | Object |
| Defined in: | lib/graphql/client/schema/include_directive.rb |
Class Method Summary
-
.new(of_klass) ⇒ IncludeDirective
constructor
Internal: Construct list wrapper from other
BaseType.
Instance Attribute Summary
-
#of_klass
readonly
Internal: Get wrapped klass.
BaseType - Included
| #schema_module | Internal: Get owner schema Module container. |
| #type | Public: Get associated |
Instance Method Summary
-
#cast(value, errors)
Internal: Cast JSON value to wrapped value.
BaseType - Included
| #cast | Internal: Cast JSON value to wrapped value. |
| #to_list_type | Internal: Get list wrapper of this type class. |
| #to_non_null_type | Internal: Get non-nullable wrapper of this type class. |
Constructor Details
.new(of_klass) ⇒ IncludeDirective
[ GitHub ]
Instance Attribute Details
#of_klass (readonly)
Internal: Get wrapped klass.
Returns BaseType instance.
# File 'lib/graphql/client/schema/include_directive.rb', line 25
attr_reader :of_klass
Instance Method Details
#cast(value, errors)
Internal: Cast JSON value to wrapped value.
values - JSON value errors - ::GraphQL::Client::Errors instance
Returns List instance or nil.
# File 'lib/graphql/client/schema/include_directive.rb', line 33
def cast(value, errors) case value when NilClass nil else of_klass.cast(value, errors) end end