Class: Slack::RealTime::Stores::Base
- Inherits:
-
Object
- Object
- Slack::RealTime::Stores::Base
- Defined in:
- lib/slack/real_time/stores/base.rb
Overview
Doesn’t store anything.
Instance Attribute Summary collapse
-
#bots ⇒ Object
Returns the value of attribute bots.
-
#channels ⇒ Object
Returns the value of attribute channels.
-
#groups ⇒ Object
Returns the value of attribute groups.
-
#ims ⇒ Object
Returns the value of attribute ims.
-
#teams ⇒ Object
Returns the value of attribute teams.
-
#users ⇒ Object
Returns the value of attribute users.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(_attrs) ⇒ Base
constructor
A new instance of Base.
- #self ⇒ Object
- #team ⇒ Object
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
#bots ⇒ Object
Returns the value of attribute bots.
9 10 11 |
# File 'lib/slack/real_time/stores/base.rb', line 9 def bots @bots end |
#channels ⇒ Object
Returns the value of attribute channels.
10 11 12 |
# File 'lib/slack/real_time/stores/base.rb', line 10 def channels @channels end |
#groups ⇒ Object
Returns the value of attribute groups.
11 12 13 |
# File 'lib/slack/real_time/stores/base.rb', line 11 def groups @groups end |
#ims ⇒ Object
Returns the value of attribute ims.
13 14 15 |
# File 'lib/slack/real_time/stores/base.rb', line 13 def ims @ims end |
#teams ⇒ Object
Returns the value of attribute teams.
12 13 14 |
# File 'lib/slack/real_time/stores/base.rb', line 12 def teams @teams end |
#users ⇒ Object
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
#self ⇒ Object
15 16 17 |
# File 'lib/slack/real_time/stores/base.rb', line 15 def self nil end |
#team ⇒ Object
19 20 21 |
# File 'lib/slack/real_time/stores/base.rb', line 19 def team nil end |