Sha256: e5c4178768793e29da9e3bafc02c6bd8c000e8dc8f040b50b0b88c3cb25c8e0b

Contents?: true

Size: 579 Bytes

Versions: 2

Compression:

Stored size: 579 Bytes

Contents

# frozen_string_literal: true
module Slack
  module RealTime
    module Stores
      # Doesn't store anything.
      class Base
        class << self
          attr_accessor :events
        end

        attr_accessor :users, :bots, :channels, :groups, :teams, :ims

        def self
          nil
        end

        def team
          nil
        end

        def initialize(_attrs); end

        def self.on(event, &block)
          self.events ||= {}
          self.events[event.to_s] ||= []
          self.events[event.to_s] << block
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-1.1.0 lib/slack/real_time/stores/base.rb
slack-ruby-client-1.0.0 lib/slack/real_time/stores/base.rb