Class: GQL::Object
Instance Attribute Summary
Attributes inherited from Field
#ast_node, #context, #target, #variables
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Field
execute, #initialize, #scalar_value
Methods included from Mixins::Common
Constructor Details
This class inherits a constructor from GQL::Field
Class Method Details
.build_class(id, proc, options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/gql/object.rb', line 8 def build_class(id, proc, = {}) object_class = .delete(:object_class) || .delete(:as) object_proc = object_proc_for_class(object_class) Class.new(self).tap do |klass| klass.id = id klass.proc = proc klass.object_proc = object_proc end end |