slack-ruby/slack-ruby-client

View on GitHub
lib/slack/web/api/templates/errors.erb

Summary

Maintainability
Test Coverage
# frozen_string_literal: true
# This file was auto-generated by lib/tasks/web.rake

module Slack
  module Web
    module Api
      module Errors
        <% errors.each do |e| %>
        class <%= e.camelize %> < SlackError; end
        <% end %>

        ERROR_CLASSES = {
          <% errors.each do |e| %>
          '<%= e %>' => <%= e.camelize %>,
          <% end %>
        }.freeze
      end
    end
  end
end