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.
Class Attribute Summary collapse
-
.events ⇒ Object
Returns the value of attribute events.
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.
26 |
# File 'lib/slack/real_time/stores/base.rb', line 26 def initialize(_attrs); end |
Class Attribute Details
.events ⇒ Object
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
#bots ⇒ Object
Returns the value of attribute bots.
12 13 14 |
# File 'lib/slack/real_time/stores/base.rb', line 12 def bots @bots end |
#channels ⇒ Object
Returns the value of attribute channels.
13 14 15 |
# File 'lib/slack/real_time/stores/base.rb', line 13 def channels @channels end |
#groups ⇒ Object
Returns the value of attribute groups.
14 15 16 |
# File 'lib/slack/real_time/stores/base.rb', line 14 def groups @groups end |
#ims ⇒ Object
Returns the value of attribute ims.
16 17 18 |
# File 'lib/slack/real_time/stores/base.rb', line 16 def ims @ims end |
#teams ⇒ Object
Returns the value of attribute teams.
15 16 17 |
# File 'lib/slack/real_time/stores/base.rb', line 15 def teams @teams end |
#users ⇒ Object
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
#self ⇒ Object
18 19 20 |
# File 'lib/slack/real_time/stores/base.rb', line 18 def self nil end |
#team ⇒ Object
22 23 24 |
# File 'lib/slack/real_time/stores/base.rb', line 22 def team nil end |