Class: Slack::RealTime::Stores::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/slack/real_time/stores/base.rb

Overview

Doesn’t store anything.

Direct Known Subclasses

Starter, Store

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_attrs) ⇒ Base

Returns a new instance of Base.



23
24
# File 'lib/slack/real_time/stores/base.rb', line 23

def initialize(_attrs)
end

Instance Attribute Details

#botsObject

Returns the value of attribute bots.



9
10
11
# File 'lib/slack/real_time/stores/base.rb', line 9

def bots
  @bots
end

#channelsObject

Returns the value of attribute channels.



10
11
12
# File 'lib/slack/real_time/stores/base.rb', line 10

def channels
  @channels
end

#groupsObject

Returns the value of attribute groups.



11
12
13
# File 'lib/slack/real_time/stores/base.rb', line 11

def groups
  @groups
end

#imsObject

Returns the value of attribute ims.



13
14
15
# File 'lib/slack/real_time/stores/base.rb', line 13

def ims
  @ims
end

#teamsObject

Returns the value of attribute teams.



12
13
14
# File 'lib/slack/real_time/stores/base.rb', line 12

def teams
  @teams
end

#usersObject

Returns the value of attribute users.



8
9
10
# File 'lib/slack/real_time/stores/base.rb', line 8

def users
  @users
end

Class Method Details

.on(event, &block) ⇒ Object



26
27
28
29
30
# File 'lib/slack/real_time/stores/base.rb', line 26

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

Instance Method Details

#selfObject



15
16
17
# File 'lib/slack/real_time/stores/base.rb', line 15

def self
  nil
end

#teamObject



19
20
21
# File 'lib/slack/real_time/stores/base.rb', line 19

def team
  nil
end