Class: Pollen::Configuration
- Inherits:
-
Object
- Object
- Pollen::Configuration
- Defined in:
- lib/pollen/configuration.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#channel_prefix ⇒ Object
readonly
Returns the value of attribute channel_prefix.
-
#owner_class ⇒ Object
readonly
Returns the value of attribute owner_class.
-
#redis ⇒ Object
readonly
Returns the value of attribute redis.
Instance Method Summary collapse
- #assign_defaults ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #root ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 12 |
# File 'lib/pollen/configuration.rb', line 7 def initialize super @owner_class = nil @channel_prefix = nil @redis = nil end |
Instance Attribute Details
#channel_prefix ⇒ Object (readonly)
Returns the value of attribute channel_prefix.
5 6 7 |
# File 'lib/pollen/configuration.rb', line 5 def channel_prefix @channel_prefix end |
#owner_class ⇒ Object (readonly)
Returns the value of attribute owner_class.
5 6 7 |
# File 'lib/pollen/configuration.rb', line 5 def owner_class @owner_class end |
#redis ⇒ Object (readonly)
Returns the value of attribute redis.
5 6 7 |
# File 'lib/pollen/configuration.rb', line 5 def redis @redis end |
Instance Method Details
#assign_defaults ⇒ Object
14 15 16 17 |
# File 'lib/pollen/configuration.rb', line 14 def assign_defaults @owner_class = 'User' @channel_prefix = 'pollen:streams' end |
#root ⇒ Object
19 20 21 |
# File 'lib/pollen/configuration.rb', line 19 def root self end |