iZettle/api-model

View on GitHub
lib/api_model/error_message_formatter.rb

Summary

Maintainability
A
0 mins
Test Coverage
module ApiModel
  class ErrorMessageFormatter

    def self.format(http_response)
      "#{http_response.api_call.response_code}: #{http_response.api_call.request.url}"
    end

  end
end