Class: ArSerializer::GraphQL::TSTypeClass

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

#association_type, #description, #fields, from, #of_type

Constructor Details

#initialize(type) ⇒ TSTypeClass

Returns a new instance of TSTypeClass.



158
159
160
# File 'lib/ar_serializer/graphql/types.rb', line 158

def initialize(type)
  @type = type
end

Instance Method Details

#collect_types(types) ⇒ Object



166
167
168
# File 'lib/ar_serializer/graphql/types.rb', line 166

def collect_types(types)
  types[:other] = true
end

#gql_typeObject



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

def gql_type = 'SCALAR'

#kindObject



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

def kind = 'SCALAR'

#nameObject



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

def name = :other

#ts_typeObject



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

def ts_type = @type