Class: GraphQL::Client::ClientError
- Defined in:
- lib/graphql_client/error.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ ClientError
constructor
A new instance of ClientError.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ ClientError
Returns a new instance of ClientError.
13 14 15 |
# File 'lib/graphql_client/error.rb', line 13 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
11 12 13 |
# File 'lib/graphql_client/error.rb', line 11 def response @response end |
Instance Method Details
#message ⇒ Object
17 18 19 |
# File 'lib/graphql_client/error.rb', line 17 def "#{response.code} #{response.}" end |