class ZombieBattleground::Api::Errors::InvalidResponse
Creates an error with the Faraday response and the context for the error
Public Class Methods
new(response, context)
click to toggle source
Creates an exception class with the Faraday response and error context
@param response [Faraday::Response] response from the endpoint @param context [Class] parsed response object
@return [ZombieBattleground::Api::Errors::InvalidResponse]
@api private
Calls superclass method
# File lib/zombie_battleground/api/errors.rb, line 44 def initialize(response, context) @response = response @context = context super(context.errors.messages.to_s) end