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.

[View source]

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

[View source]

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

def create; end

#deleteObject

[View source]

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

def delete; end

#key(k) ⇒ Object

[View source]

39
40
41
42
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 39

def key(k)
  @key = k
  self
end

#topics(t) ⇒ Object

[View source]

43
44
45
46
# File 'lib/ruby/riddl/utils/notifications_producer.rb', line 43

def topics(t)
  @topics = t
  self
end

#updateObject

[View source]

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

def update; end

#ws_closeObject

[View source]

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

def ws_close; end

#ws_message(socket, data) ⇒ Object

[View source]

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

def ws_message(socket,data); end

#ws_open(socket) ⇒ Object

[View source]

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

def ws_open(socket); end