Sha256: 4d98a13af3b8c2ae10128251581986ebeb5aad8718d84eaa6220689ac2af8426

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

# frozen_string_literal: true
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

2 entries across 2 versions & 1 rubygems

Version Path
slack-ruby-client-0.14.6 lib/slack/real_time/stores/base.rb
slack-ruby-client-0.14.5 lib/slack/real_time/stores/base.rb