Class: GraphQL::Stitching::Util::TypeStructure

Inherits:
Struct
  • Object
show all
Defined in:
lib/graphql/stitching/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#listObject Also known as: list?

Returns the value of attribute list

Returns:

  • (Object)

    the current value of list



6
7
8
# File 'lib/graphql/stitching/util.rb', line 6

def list
  @list
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



6
7
8
# File 'lib/graphql/stitching/util.rb', line 6

def name
  @name
end

#nullObject Also known as: null?

Returns the value of attribute null

Returns:

  • (Object)

    the current value of null



6
7
8
# File 'lib/graphql/stitching/util.rb', line 6

def null
  @null
end

Instance Method Details

#non_null?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/graphql/stitching/util.rb', line 10

def non_null?
  !null
end