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

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(_attrs) ⇒ Base

Returns a new instance of Base.



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

def initialize(_attrs); end

Class Attribute Details

.eventsObject

Returns the value of attribute events.



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

def events
  @events
end

Instance Attribute Details

#botsObject

Returns the value of attribute bots.



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

def bots
  @bots
end

#channelsObject

Returns the value of attribute channels.



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

def channels
  @channels
end

#groupsObject

Returns the value of attribute groups.



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

def groups
  @groups
end

#imsObject

Returns the value of attribute ims.



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

def ims
  @ims
end

#teamsObject

Returns the value of attribute teams.



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

def teams
  @teams
end

#usersObject

Returns the value of attribute users.



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

def users
  @users
end

Class Method Details

.on(event, &block) ⇒ Object



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

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

Instance Method Details

#selfObject



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

def self
  nil
end

#teamObject



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

def team
  nil
end