Sha256: 931ed4e5119e1ea933248f07e0cadf0b0b4e16465b67799e11f7aac11cf863f6

Contents?: true

Size: 620 Bytes

Versions: 10

Compression:

Stored size: 620 Bytes

Contents

module Slack
  module RealTime
    module Stores
      # Doesn't store anything.
      class Base
        class_attribute :events

        attr_accessor :users
        attr_accessor :bots
        attr_accessor :channels
        attr_accessor :groups
        attr_accessor :teams
        attr_accessor :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

10 entries across 10 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.4 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.14.3 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.14.2 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.14.1 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.14.0 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.13.1 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.13.0 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.12.0 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.11.1 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.11.0 lib/slack/real_time/stores/base.rb