Sha256: 7ccd4d212be3293f7293375065735ac68ba9aa2b7f785f30a318d02effb91920

Contents?: true

Size: 627 Bytes

Versions: 15

Compression:

Stored size: 627 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

15 entries across 15 versions & 1 rubygems

Version Path
slack-ruby-client-0.10.0 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.9.1 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.9.0 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.8.1 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.8.0 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.9 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.8 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.7 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.6 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.5 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.4 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.3 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.2 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.1 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.7.0 lib/slack/real_time/stores/base.rb