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.
178 179 180 181 |
# File 'lib/graphql/client.rb', line 178 def initialize(data:, **kargs) @data = data super(**kargs) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
176 177 178 |
# File 'lib/graphql/client.rb', line 176 def data @data end |