Class: GraphQL::ListType
- Inherits:
-
ObjectType
- Object
- ObjectType
- GraphQL::ListType
- Defined in:
- lib/graphql/list_type.rb
Overview
A list type wraps another type.
See TypeKind#unwrap for accessing the modified type
Instance Attribute Summary collapse
-
#of_type ⇒ Object
readonly
Returns the value of attribute of_type.
Attributes inherited from ObjectType
#description, #fields, #interfaces, #name
Instance Method Summary collapse
-
#initialize(of_type:) ⇒ ListType
constructor
A new instance of ListType.
- #kind ⇒ Object
Methods inherited from ObjectType
Methods included from DefinitionHelpers::DefinedByConfig
Methods included from DefinitionHelpers::NonNullWithBang
Constructor Details
#initialize(of_type:) ⇒ ListType
Returns a new instance of ListType.
6 7 8 9 |
# File 'lib/graphql/list_type.rb', line 6 def initialize(of_type:) @name = "List" @of_type = of_type end |
Instance Attribute Details
#of_type ⇒ Object (readonly)
Returns the value of attribute of_type.
5 6 7 |
# File 'lib/graphql/list_type.rb', line 5 def of_type @of_type end |