Class: GraphQL::Syntax::Fragment

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/syntax/fragment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#fieldsObject (readonly)

Returns the value of attribute fields.



2
3
4
# File 'lib/graphql/syntax/fragment.rb', line 2

def fields
  @fields
end

#identifierObject (readonly)

Returns the value of attribute identifier.



2
3
4
# File 'lib/graphql/syntax/fragment.rb', line 2

def identifier
  @identifier
end