Class: GraphQL::Language::Nodes::InlineFragment

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.



145
146
147
# File 'lib/graphql/language/nodes.rb', line 145

def directives
  @directives
end

#selectionsObject

Returns the value of attribute selections.



145
146
147
# File 'lib/graphql/language/nodes.rb', line 145

def selections
  @selections
end

#typeObject

Returns the value of attribute type.



145
146
147
# File 'lib/graphql/language/nodes.rb', line 145

def type
  @type
end

Instance Method Details

#initialize_node(type: nil, directives: [], selections: []) ⇒ Object



148
149
150
151
152
# File 'lib/graphql/language/nodes.rb', line 148

def initialize_node(type: nil, directives: [], selections: [])
  @type = type
  @directives = directives
  @selections = selections
end