Class: GraphQL::Client::List
- Inherits:
-
Array
- Object
- Array
- GraphQL::Client::List
- Defined in:
- lib/graphql/client/list.rb
Overview
Public: Array wrapper for value returned from GraphQL List.
Instance Attribute Summary collapse
-
#errors ⇒ Object
readonly
Public: Return errors associated with list of data.
Instance Method Summary collapse
-
#initialize(values, errors = Errors.new) ⇒ List
constructor
A new instance of List.
Constructor Details
permalink #initialize(values, errors = Errors.new) ⇒ List
Returns a new instance of List.
8 9 10 11 12 |
# File 'lib/graphql/client/list.rb', line 8 def initialize(values, errors = Errors.new) super(values) @errors = errors freeze end |
Instance Attribute Details
permalink #errors ⇒ Object (readonly)
Public: Return errors associated with list of data.
Returns Errors collection.
17 18 19 |
# File 'lib/graphql/client/list.rb', line 17 def errors @errors end |