Class: GraphQL::Language::Nodes::FragmentDefinition

Inherits:
AbstractNode
  • Object
show all
Defined in:
lib/graphql/language/nodes.rb

Instance Attribute Summary collapse

Attributes inherited from AbstractNode

#col, #line

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

#directivesObject

Returns the value of attribute directives.



123
124
125
# File 'lib/graphql/language/nodes.rb', line 123

def directives
  @directives
end

#nameObject

Returns the value of attribute name.



123
124
125
# File 'lib/graphql/language/nodes.rb', line 123

def name
  @name
end

#selectionsObject

Returns the value of attribute selections.



123
124
125
# File 'lib/graphql/language/nodes.rb', line 123

def selections
  @selections
end

#typeObject

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