Class: MultipleMan::Subscribers::Base
- Inherits:
-
Object
- Object
- MultipleMan::Subscribers::Base
- Defined in:
- lib/multiple_man/subscribers/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
Instance Method Summary collapse
- #create(_) ⇒ Object
- #destroy(_) ⇒ Object
-
#initialize(klass) ⇒ Base
constructor
A new instance of Base.
- #listen_to ⇒ Object
- #routing_key(operation = :'#') ⇒ Object
- #seed(_) ⇒ Object
- #update(_) ⇒ Object
Constructor Details
#initialize(klass) ⇒ Base
Returns a new instance of Base.
4 5 6 |
# File 'lib/multiple_man/subscribers/base.rb', line 4 def initialize(klass) self.klass = klass end |
Instance Attribute Details
#klass ⇒ Object
Returns the value of attribute klass.
8 9 10 |
# File 'lib/multiple_man/subscribers/base.rb', line 8 def klass @klass end |
Instance Method Details
#create(_) ⇒ Object
10 11 12 |
# File 'lib/multiple_man/subscribers/base.rb', line 10 def create(_) # noop end |
#destroy(_) ⇒ Object
18 19 20 |
# File 'lib/multiple_man/subscribers/base.rb', line 18 def destroy(_) # noop end |
#listen_to ⇒ Object
30 31 32 |
# File 'lib/multiple_man/subscribers/base.rb', line 30 def listen_to klass end |
#routing_key(operation = :'#') ⇒ Object
26 27 28 |
# File 'lib/multiple_man/subscribers/base.rb', line 26 def routing_key(operation = :'#') MultipleMan::RoutingKey.new(klass, operation).to_s end |
#seed(_) ⇒ Object
22 23 24 |
# File 'lib/multiple_man/subscribers/base.rb', line 22 def seed(_) # noop end |
#update(_) ⇒ Object
14 15 16 |
# File 'lib/multiple_man/subscribers/base.rb', line 14 def update(_) # noop end |