Method: Crowdkit::ServiceError#initialize

Defined in:
lib/crowdkit/error.rb

#initialize(response = nil) ⇒ ServiceError

Returns a new instance of ServiceError.



91
92
93
94
# File 'lib/crowdkit/error.rb', line 91

def initialize(response=nil)
  @response = Faraday::Response.new(response)
  super(build_error_message)
end