Class: Slack::RealTime::Stores::Starter

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

Overview

Stores only basic team and self info

Constant Summary

Constants inherited from Base

Base::CACHES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

inherited, on

Constructor Details

#initialize(attrs, _options = {}) ⇒ Starter

Returns a new instance of Starter.



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

def initialize(attrs, _options = {})
  @team = Models::Team.new(attrs.team)
  @self = Models::User.new(attrs.self)
end

Instance Attribute Details

#selfObject (readonly)

Returns the value of attribute self.



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

def self
  @self
end

#teamObject (readonly)

Returns the value of attribute team.



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

def team
  @team
end