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