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