Class: GraphQL::Client::PartialResponse

Inherits:
SuccessfulResponse show all
Defined in:
lib/graphql/client.rb

Instance Attribute Summary collapse

Attributes inherited from SuccessfulResponse

#data

Attributes inherited from Response

#extensions

Instance Method Summary collapse

Constructor Details

#initialize(errors:, **kargs) ⇒ PartialResponse

Returns a new instance of PartialResponse.



210
211
212
213
# File 'lib/graphql/client.rb', line 210

def initialize(errors:, **kargs)
  @errors = errors
  super(**kargs)
end

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



208
209
210
# File 'lib/graphql/client.rb', line 208

def errors
  @errors
end