Class: Riddl::Utils::Notifications::Producer::HandlerBase
- Inherits:
-
Object
- Object
- Riddl::Utils::Notifications::Producer::HandlerBase
- Defined in:
- lib/ruby/riddl/utils/notifications_producer.rb
Overview
{{{
Instance Method Summary collapse
- #create ⇒ Object
- #delete ⇒ Object
-
#initialize(data) ⇒ HandlerBase
constructor
A new instance of HandlerBase.
- #key(k) ⇒ Object
- #topics(t) ⇒ Object
- #update ⇒ Object
- #ws_close ⇒ Object
- #ws_message(socket, data) ⇒ Object
- #ws_open(socket) ⇒ Object
Constructor Details
#initialize(data) ⇒ HandlerBase
Returns a new instance of HandlerBase.
34 35 36 37 38 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 34 def initialize(data) @data = data @key = nil @topics = [] end |
Instance Method Details
#create ⇒ Object
50 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 50 def create; end |
#delete ⇒ Object
51 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 51 def delete; end |
#key(k) ⇒ Object
39 40 41 42 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 39 def key(k) @key = k self end |
#topics(t) ⇒ Object
43 44 45 46 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 43 def topics(t) @topics = t self end |
#update ⇒ Object
52 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 52 def update; end |
#ws_close ⇒ Object
48 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 48 def ws_close; end |
#ws_message(socket, data) ⇒ Object
49 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 49 def (socket,data); end |
#ws_open(socket) ⇒ Object
47 |
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 47 def ws_open(socket); end |