Class: GraphQL::Extras::Test::Response
- Inherits:
-
Object
- Object
- GraphQL::Extras::Test::Response
- Defined in:
- lib/graphql/extras/test/response.rb
Defined Under Namespace
Classes: Error
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
-
#initialize(payload) ⇒ Response
constructor
A new instance of Response.
- #successful? ⇒ Boolean
Constructor Details
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/graphql/extras/test/response.rb', line 5 def data @data end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
6 7 8 |
# File 'lib/graphql/extras/test/response.rb', line 6 def errors @errors end |
Instance Method Details
#successful? ⇒ Boolean
15 16 17 |
# File 'lib/graphql/extras/test/response.rb', line 15 def successful? errors.empty? end |