Sha256: fab8f4d518bfdd109887ad58077b86ea228b6025ecf03fb3fab5feb24071964e
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
# frozen_string_literal: true module GraphQL module Client class ResponseConnection < ResponseObject extend Forwardable include Enumerable def_delegator :page_info, :has_next_page, :has_next_page? def_delegator :page_info, :has_previous_page, :has_previous_page? def each return enum_for(:each) unless block_given? edges.each { |edge| yield edge.node } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
graphql_client-0.4.1 | lib/graphql_client/response_connection.rb |
graphql_client-0.3.3 | lib/graphql_client/response_connection.rb |