Class: GQL::Fields::Object
- Inherits:
-
GQL::Field
- Object
- Node
- GQL::Field
- GQL::Fields::Object
- Defined in:
- lib/gql/fields/object.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from GQL::Field
Methods inherited from Node
#__raw_value, call, cursor, field, fields, #initialize, method_missing, #method_missing
Constructor Details
This class inherits a constructor from GQL::Node
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class GQL::Node
Instance Method Details
#__value ⇒ Object
4 5 6 7 8 9 |
# File 'lib/gql/fields/object.rb', line 4 def __value raise Errors::InvalidNodeClass.new(__node_class__, Node) unless __node_class__ < Node node = __node_class__.new(@ast_node, __target, @variables, __context) node.__value end |