Class: GraphQL::InlineFragment

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

Instance Method Summary collapse

Instance Method Details

#directives_sizeObject



300
301
302
303
304
# File 'ext/graphql_parser/graphql_ruby.c', line 300

static VALUE inline_fragment_get_directives_size(VALUE self) {
  struct GraphQLAstInlineFragment *node;
  TypedData_Get_Struct(self, struct GraphQLAstInlineFragment, &inline_fragment_type, node);
  return INT2FIX(GraphQLAstInlineFragment_get_directives_size(node));
}

#selection_setObject



306
307
308
309
310
# File 'ext/graphql_parser/graphql_ruby.c', line 306

static VALUE inline_fragment_get_selection_set(VALUE self) {
  struct GraphQLAstInlineFragment *node;
  TypedData_Get_Struct(self, struct GraphQLAstInlineFragment, &inline_fragment_type, node);
  return TypedData_Wrap_Struct(selection_set_class, &selection_set_type, (void*)GraphQLAstInlineFragment_get_selection_set(node));
}

#type_conditionObject



294
295
296
297
298
# File 'ext/graphql_parser/graphql_ruby.c', line 294

static VALUE inline_fragment_get_type_condition(VALUE self) {
  struct GraphQLAstInlineFragment *node;
  TypedData_Get_Struct(self, struct GraphQLAstInlineFragment, &inline_fragment_type, node);
  return TypedData_Wrap_Struct(named_type_class, &named_type_type, (void*)GraphQLAstInlineFragment_get_type_condition(node));
}