Class: GraphQL::FragmentDefinition

Inherits:
Node
  • Object
show all
Defined in:
ext/graphql_parser/graphql_ruby.c

Instance Method Summary collapse

Instance Method Details

#directives_sizeObject



341
342
343
344
345
# File 'ext/graphql_parser/graphql_ruby.c', line 341

static VALUE fragment_definition_get_directives_size(VALUE self) {
  struct GraphQLAstFragmentDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstFragmentDefinition, &fragment_definition_type, node);
  return INT2FIX(GraphQLAstFragmentDefinition_get_directives_size(node));
}

#nameObject



329
330
331
332
333
# File 'ext/graphql_parser/graphql_ruby.c', line 329

static VALUE fragment_definition_get_name(VALUE self) {
  struct GraphQLAstFragmentDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstFragmentDefinition, &fragment_definition_type, node);
  return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstFragmentDefinition_get_name(node));
}

#selection_setObject



347
348
349
350
351
# File 'ext/graphql_parser/graphql_ruby.c', line 347

static VALUE fragment_definition_get_selection_set(VALUE self) {
  struct GraphQLAstFragmentDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstFragmentDefinition, &fragment_definition_type, node);
  return TypedData_Wrap_Struct(selection_set_class, &selection_set_type, (void*)GraphQLAstFragmentDefinition_get_selection_set(node));
}

#type_conditionObject



335
336
337
338
339
# File 'ext/graphql_parser/graphql_ruby.c', line 335

static VALUE fragment_definition_get_type_condition(VALUE self) {
  struct GraphQLAstFragmentDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstFragmentDefinition, &fragment_definition_type, node);
  return TypedData_Wrap_Struct(named_type_class, &named_type_type, (void*)GraphQLAstFragmentDefinition_get_type_condition(node));
}