Class: Riddl::Utils::Notifications::Producer::HandlerBase

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby/riddl/utils/notifications_producer.rb

Overview

{{{

Instance Method Summary collapse

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

#createObject



50
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 50

def create; end

#deleteObject



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

#updateObject



52
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 52

def update; end

#ws_closeObject



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 ws_message(socket,data); end

#ws_open(socket) ⇒ Object



47
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 47

def ws_open(socket); end