Sha256: 3a7f6ca917719a322a86662d92f0c30c320d879ec196c07be9f905766c7d268f

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

module SlackRubyBotServer
  module RealTime
    module Config
      extend self

      attr_accessor :server_class

      def reset!
        self.server_class = SlackRubyBotServer::RealTime::Server
      end

      reset!
    end

    class << self
      def configure
        block_given? ? yield(Config) : Config
      end

      def config
        Config
      end
    end
  end
end

SlackRubyBotServer::RealTime::Config.reset!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
slack-ruby-bot-server-rtm-0.2.0 lib/slack-ruby-bot-server-rtm/config.rb
slack-ruby-bot-server-rtm-0.1.1 lib/slack-ruby-bot-server-rtm/config.rb
slack-ruby-bot-server-rtm-0.1.0 lib/slack-ruby-bot-server-rtm/config.rb