Class: GraphQL::Argument

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

Instance Method Summary collapse

Instance Method Details

#nameObject



236
237
238
239
240
# File 'ext/graphql_parser/graphql_ruby.c', line 236

static VALUE argument_get_name(VALUE self) {
  struct GraphQLAstArgument *node;
  TypedData_Get_Struct(self, struct GraphQLAstArgument, &argument_type, node);
  return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstArgument_get_name(node));
}

#valueObject



242
243
244
245
246
# File 'ext/graphql_parser/graphql_ruby.c', line 242

static VALUE argument_get_value(VALUE self) {
  struct GraphQLAstArgument *node;
  TypedData_Get_Struct(self, struct GraphQLAstArgument, &argument_type, node);
  return TypedData_Wrap_Struct(value_class, &value_type, (void*)GraphQLAstArgument_get_value(node));
}