Class: Wamp::Worker::Handle

Inherits:
Object
  • Object
show all
Defined in:
lib/wamp/worker/config.rb

Overview

region Storage Objects

Direct Known Subclasses

Registration, Subscription

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(klass, method, options) ⇒ Handle

Returns a new instance of Handle.



11
12
13
14
15
16
17
18
19
# File 'lib/wamp/worker/config.rb', line 11

def initialize(klass, method, options)
  @klass = klass
  @method = method
  @options = options

  unless klass.ancestors.include? BaseHandler
    raise(ArgumentError, "'klass' must be a Wamp::Worker::Handler type")
  end
end

Instance Attribute Details

#klassObject (readonly)

Returns the value of attribute klass.



9
10
11
# File 'lib/wamp/worker/config.rb', line 9

def klass
  @klass
end

#methodObject (readonly)

Returns the value of attribute method.



9
10
11
# File 'lib/wamp/worker/config.rb', line 9

def method
  @method
end

#optionsObject (readonly)

Returns the value of attribute options.



9
10
11
# File 'lib/wamp/worker/config.rb', line 9

def options
  @options
end