Class: GraphQL::Language::Nodes::InlineFragment
- Inherits:
-
AbstractNode
- Object
- AbstractNode
- GraphQL::Language::Nodes::InlineFragment
- Defined in:
- lib/graphql/language/nodes.rb
Instance Attribute Summary collapse
-
#directives ⇒ Object
Returns the value of attribute directives.
-
#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, #eql?, inherited, #initialize, #position, scalar_attributes, #scalars, #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.
176 177 178 |
# File 'lib/graphql/language/nodes.rb', line 176 def directives @directives end |
#selections ⇒ Object
Returns the value of attribute selections.
176 177 178 |
# File 'lib/graphql/language/nodes.rb', line 176 def selections @selections end |
#type ⇒ Object
Returns the value of attribute type.
176 177 178 |
# File 'lib/graphql/language/nodes.rb', line 176 def type @type end |
Instance Method Details
#initialize_node(type: nil, directives: [], selections: []) ⇒ Object
180 181 182 183 184 |
# File 'lib/graphql/language/nodes.rb', line 180 def initialize_node(type: nil, directives: [], selections: []) @type = type @directives = directives @selections = selections end |