Class: ArSerializer::GraphQL::OptionalTypeClass
- Inherits:
-
TypeClass
- Object
- TypeClass
- ArSerializer::GraphQL::OptionalTypeClass
show all
- Defined in:
- lib/ar_serializer/graphql/types.rb
Instance Attribute Summary
Attributes inherited from TypeClass
#type
Instance Method Summary
collapse
Methods inherited from TypeClass
#description, #fields, from, #initialize
Instance Method Details
#association_type ⇒ Object
336
|
# File 'lib/ar_serializer/graphql/types.rb', line 336
def association_type = type.association_type
|
#collect_types(types) ⇒ Object
338
339
340
|
# File 'lib/ar_serializer/graphql/types.rb', line 338
def collect_types(types)
type.collect_types types
end
|
#gql_type ⇒ Object
342
|
# File 'lib/ar_serializer/graphql/types.rb', line 342
def gql_type = type.gql_type
|
#kind ⇒ Object
330
|
# File 'lib/ar_serializer/graphql/types.rb', line 330
def kind = type.kind
|
#name ⇒ Object
332
|
# File 'lib/ar_serializer/graphql/types.rb', line 332
def name = type.name
|
#of_type ⇒ Object
334
|
# File 'lib/ar_serializer/graphql/types.rb', line 334
def of_type = type
|
#ts_type ⇒ Object
344
|
# File 'lib/ar_serializer/graphql/types.rb', line 344
def ts_type = "(#{type.ts_type} | null)"
|