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, #to_query_string
Constructor Details
This class inherits a constructor from GraphQL::Language::Nodes::AbstractNode
Instance Attribute Details
#directives ⇒ Object
Returns the value of attribute directives.
123 124 125 |
# File 'lib/graphql/language/nodes.rb', line 123 def directives @directives end |
#name ⇒ Object
Returns the value of attribute name.
123 124 125 |
# File 'lib/graphql/language/nodes.rb', line 123 def name @name end |
#selections ⇒ Object
Returns the value of attribute selections.
123 124 125 |
# File 'lib/graphql/language/nodes.rb', line 123 def selections @selections end |
#type ⇒ Object
Returns the value of attribute type.
123 124 125 |
# File 'lib/graphql/language/nodes.rb', line 123 def type @type end |
Instance Method Details
#initialize_node(name: nil, type: nil, directives: [], selections: []) ⇒ Object
126 127 128 129 130 131 |
# File 'lib/graphql/language/nodes.rb', line 126 def initialize_node(name: nil, type: nil, directives: [], selections: []) @name = name @type = type @directives = directives @selections = selections end |