Class: GraphQL::Syntax::Node
- Inherits:
-
Object
- Object
- GraphQL::Syntax::Node
- Defined in:
- lib/graphql/syntax/node.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
-
#initialize(identifier:, arguments:, fields: []) ⇒ Node
constructor
A new instance of Node.
Constructor Details
#initialize(identifier:, arguments:, fields: []) ⇒ Node
Returns a new instance of Node.
3 4 5 6 7 |
# File 'lib/graphql/syntax/node.rb', line 3 def initialize(identifier:, arguments:, fields: []) @identifier = identifier @arguments = arguments @fields = fields end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
2 3 4 |
# File 'lib/graphql/syntax/node.rb', line 2 def arguments @arguments end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
2 3 4 |
# File 'lib/graphql/syntax/node.rb', line 2 def fields @fields end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
2 3 4 |
# File 'lib/graphql/syntax/node.rb', line 2 def identifier @identifier end |