Class: GraphQL::Field
Instance Method Summary collapse
- #alias ⇒ Object
- #arguments_size ⇒ Object
- #directives_size ⇒ Object
- #name ⇒ Object
- #selection_set ⇒ Object
Instance Method Details
#alias ⇒ Object
187 188 189 190 191 192 |
# File 'ext/graphql_parser/graphql_ruby.c', line 187
static VALUE field_get_alias(VALUE self) {
struct GraphQLAstField *node;
TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
if (GraphQLAstField_get_alias(node) == NULL) return Qnil;
return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstField_get_alias(node));
}
|
#arguments_size ⇒ Object
200 201 202 203 204 |
# File 'ext/graphql_parser/graphql_ruby.c', line 200
static VALUE field_get_arguments_size(VALUE self) {
struct GraphQLAstField *node;
TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
return INT2FIX(GraphQLAstField_get_arguments_size(node));
}
|
#directives_size ⇒ Object
206 207 208 209 210 |
# File 'ext/graphql_parser/graphql_ruby.c', line 206
static VALUE field_get_directives_size(VALUE self) {
struct GraphQLAstField *node;
TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
return INT2FIX(GraphQLAstField_get_directives_size(node));
}
|
#name ⇒ Object
194 195 196 197 198 |
# File 'ext/graphql_parser/graphql_ruby.c', line 194
static VALUE field_get_name(VALUE self) {
struct GraphQLAstField *node;
TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstField_get_name(node));
}
|
#selection_set ⇒ Object
212 213 214 215 216 217 |
# File 'ext/graphql_parser/graphql_ruby.c', line 212
static VALUE field_get_selection_set(VALUE self) {
struct GraphQLAstField *node;
TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
if (GraphQLAstField_get_selection_set(node) == NULL) return Qnil;
return TypedData_Wrap_Struct(selection_set_class, &selection_set_type, (void*)GraphQLAstField_get_selection_set(node));
}
|