Class: GraphQL::Client::ResponseConnection

Inherits:
ResponseObject show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/graphql_client/response_connection.rb

Instance Attribute Summary

Attributes inherited from ResponseObject

#data

Instance Method Summary collapse

Methods inherited from ResponseObject

#initialize

Constructor Details

This class inherits a constructor from GraphQL::Client::ResponseObject

Instance Method Details

#eachObject



12
13
14
15
# File 'lib/graphql_client/response_connection.rb', line 12

def each
  return enum_for(:each) unless block_given?
  edges.each { |edge| yield edge.node }
end