Class: GraphQL::Client::FailedResponse

Inherits:
Response
  • Object
show all
Defined in:
lib/graphql/client.rb

Instance Attribute Summary collapse

Attributes inherited from Response

#extensions

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of FailedResponse.



236
237
238
239
# File 'lib/graphql/client.rb', line 236

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

Instance Attribute Details

#errorsObject (readonly)

Returns the value of attribute errors.



234
235
236
# File 'lib/graphql/client.rb', line 234

def errors
  @errors
end