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



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

def list
  @list
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#nullObject Also known as: null?

Returns the value of attribute null

Returns:

  • (Object)

    the current value of null



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

def null
  @null
end

Instance Method Details

#non_null?Boolean

Returns:

  • (Boolean)


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

def non_null?
  !null
end