Class: GraphQL::Stitching::Util::TypeStructure
- Inherits:
-
Object
- Object
- GraphQL::Stitching::Util::TypeStructure
- Defined in:
- lib/graphql/stitching/util.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(list:, null:, name:) ⇒ TypeStructure
constructor
A new instance of TypeStructure.
- #list? ⇒ Boolean
- #non_null? ⇒ Boolean
- #null? ⇒ Boolean
Constructor Details
#initialize(list:, null:, name:) ⇒ TypeStructure
Returns a new instance of TypeStructure.
10 11 12 13 14 |
# File 'lib/graphql/stitching/util.rb', line 10 def initialize(list:, null:, name:) @list = list @null = null @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/graphql/stitching/util.rb', line 8 def name @name end |
Instance Method Details
#==(other) ⇒ Object
28 29 30 |
# File 'lib/graphql/stitching/util.rb', line 28 def ==(other) @list == other.list? && @null == other.null? && @name == other.name end |
#list? ⇒ Boolean
16 17 18 |
# File 'lib/graphql/stitching/util.rb', line 16 def list? @list end |
#non_null? ⇒ Boolean
24 25 26 |
# File 'lib/graphql/stitching/util.rb', line 24 def non_null? !@null end |
#null? ⇒ Boolean
20 21 22 |
# File 'lib/graphql/stitching/util.rb', line 20 def null? @null end |