Class: ArSerializer::GraphQL::OptionalTypeClass

Inherits:
TypeClass
  • Object
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

Constructor Details

This class inherits a constructor from ArSerializer::GraphQL::TypeClass

Instance Method Details

#association_typeObject



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_typeObject



342
# File 'lib/ar_serializer/graphql/types.rb', line 342

def gql_type = type.gql_type

#kindObject



330
# File 'lib/ar_serializer/graphql/types.rb', line 330

def kind = type.kind

#nameObject



332
# File 'lib/ar_serializer/graphql/types.rb', line 332

def name = type.name

#of_typeObject



334
# File 'lib/ar_serializer/graphql/types.rb', line 334

def of_type = type

#ts_typeObject



344
# File 'lib/ar_serializer/graphql/types.rb', line 344

def ts_type = "(#{type.ts_type} | null)"