Class: GraphQL::Client::SuccessfulResponse
- Defined in:
- lib/graphql/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Attributes inherited from Response
Instance Method Summary collapse
-
#initialize(data:, **kargs) ⇒ SuccessfulResponse
constructor
A new instance of SuccessfulResponse.
Constructor Details
#initialize(data:, **kargs) ⇒ SuccessfulResponse
Returns a new instance of SuccessfulResponse.
218 219 220 221 |
# File 'lib/graphql/client.rb', line 218 def initialize(data:, **kargs) @data = data super(**kargs) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
216 217 218 |
# File 'lib/graphql/client.rb', line 216 def data @data end |