Class: GraphQL::Language::Nodes::FragmentDefinition
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::FragmentDefinition
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#directives ⇒ Object
Returns the value of attribute directives.
-
#name ⇒ Object
Returns the value of attribute name.
-
#selections ⇒ Object
Returns the value of attribute selections.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from AbstractNode
Instance Method Summary collapse
Methods inherited from AbstractNode
child_attributes, #children, #initialize, #position
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#directives ⇒ Object
Returns the value of attribute directives.
119 120 121 |
# File 'lib/graphql/language/nodes.rb', line 119 def directives @directives end |
#name ⇒ Object
Returns the value of attribute name.
119 120 121 |
# File 'lib/graphql/language/nodes.rb', line 119 def name @name end |
#selections ⇒ Object
Returns the value of attribute selections.
119 120 121 |
# File 'lib/graphql/language/nodes.rb', line 119 def selections @selections end |
#type ⇒ Object
Returns the value of attribute type.
119 120 121 |
# File 'lib/graphql/language/nodes.rb', line 119 def type @type end |
Instance Method Details
#initialize_node(name: nil, type: nil, directives: [], selections: []) ⇒ Object
122 123 124 125 126 127 |
# File 'lib/graphql/language/nodes.rb', line 122 def initialize_node(name: nil, type: nil, directives: [], selections: []) @name = name @type = type @directives = directives @selections = selections end |