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.



227
228
229
230
# File 'lib/graphql/client.rb', line 227

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

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



225
226
227
# File 'lib/graphql/client.rb', line 225

def errors
  @errors
end