123456789_123456789_123456789_123456789_123456789_

Class: GraphQL::Client::List

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Array
Instance Chain:
self, Array
Inherits: Array
  • Object
Defined in: lib/graphql/client/list.rb

Overview

Public: Array wrapper for value returned from ::GraphQL List.

Class Method Summary

Instance Attribute Summary

  • #errors readonly

    Public: Return errors associated with list of data.

Constructor Details

.new(values, errors = Errors.new) ⇒ List

[ GitHub ]

  
# File 'lib/graphql/client/list.rb', line 8

def initialize(values, errors = Errors.new)
  super(values)
  @errors = errors
  freeze
end

Instance Attribute Details

#errors (readonly)

Public: Return errors associated with list of data.

Returns Errors collection.

[ GitHub ]

  
# File 'lib/graphql/client/list.rb', line 17

attr_reader :errors