Class: GQL::Fields::Object

Inherits:
GQL::Field show all
Defined in:
lib/gql/fields/object.rb

Instance Attribute Summary

Attributes inherited from Node

#__context, #__target

Instance Method Summary collapse

Methods inherited from GQL::Field

#__raw_value

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

#__valueObject



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