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.



187
188
189
190
# File 'lib/graphql/client.rb', line 187

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

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



185
186
187
# File 'lib/graphql/client.rb', line 185

def errors
  @errors
end