Class: ArSerializer::GraphQL::ListTypeClass

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



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

def association_type = type.association_type

#collect_types(types) ⇒ Object



371
372
373
# File 'lib/ar_serializer/graphql/types.rb', line 371

def collect_types(types)
  type.collect_types types
end

#gql_typeObject



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

def gql_type = "[#{type.gql_type}]"

#kindObject



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

def kind = 'LIST'

#nameObject



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

def name = 'LIST'

#of_typeObject



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

def of_type = type

#ts_typeObject



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

def ts_type = "(#{type.ts_type} [])"