Class: GraphQL::ObjectField

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

Instance Method Summary collapse

Instance Method Details

#nameObject



557
558
559
560
561
# File 'ext/graphql_parser/graphql_ruby.c', line 557

static VALUE object_field_get_name(VALUE self) {
  struct GraphQLAstObjectField *node;
  TypedData_Get_Struct(self, struct GraphQLAstObjectField, &object_field_type, node);
  return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstObjectField_get_name(node));
}

#valueObject



563
564
565
566
567
# File 'ext/graphql_parser/graphql_ruby.c', line 563

static VALUE object_field_get_value(VALUE self) {
  struct GraphQLAstObjectField *node;
  TypedData_Get_Struct(self, struct GraphQLAstObjectField, &object_field_type, node);
  return TypedData_Wrap_Struct(value_class, &value_type, (void*)GraphQLAstObjectField_get_value(node));
}