Class: GQL::Fields::Connection
- Inherits:
-
GQL::Field
- Object
- Node
- GQL::Field
- GQL::Fields::Connection
- Defined in:
- lib/gql/fields/connection.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
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
#__raw_value ⇒ Object
12 13 14 15 16 17 |
# File 'lib/gql/fields/connection.rb', line 12 def __raw_value raise Errors::InvalidNodeClass.new(__connection_class__, GQL::Connection) unless __connection_class__ < GQL::Connection connection = __connection_class__.new(__node_class__, @ast_node, __target, @variables, __context) connection.__value end |
#__value ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/gql/fields/connection.rb', line 4 def __value if @ast_node.fields __raw_value else super end end |