Class: ArSerializer::GraphQL::TSTypeClass
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
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_type ⇒ Object
170
|
# File 'lib/ar_serializer/graphql/types.rb', line 170
def gql_type = 'SCALAR'
|
#kind ⇒ Object
162
|
# File 'lib/ar_serializer/graphql/types.rb', line 162
def kind = 'SCALAR'
|
#name ⇒ Object
164
|
# File 'lib/ar_serializer/graphql/types.rb', line 164
def name = :other
|
#ts_type ⇒ Object
172
|
# File 'lib/ar_serializer/graphql/types.rb', line 172
def ts_type = @type
|