Class: GQL::Field
Direct Known Subclasses
GQL::Fields::Array, GQL::Fields::Boolean, GQL::Fields::Connection, GQL::Fields::Float, GQL::Fields::Integer, GQL::Fields::Object, GQL::Fields::String
Defined Under Namespace
Classes: Method
Instance Attribute Summary
Attributes inherited from Node
#ast_node, #context, #target, #variables
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Node
call, cursor, field, #initialize, method_missing, #value, #value_of_call, #value_of_field, #value_of_fields
Constructor Details
This class inherits a constructor from GQL::Node
Class Method Details
.build_class(method, options = {}) ⇒ Object
20 21 22 23 24 |
# File 'lib/gql/field.rb', line 20 def build_class(method, = {}) Class.new(self).tap do |field_class| field_class.method = method end end |
Instance Method Details
#raw_value ⇒ Object
27 28 29 |
# File 'lib/gql/field.rb', line 27 def raw_value target end |