Class: Wamp::Worker::Handle
- Inherits:
-
Object
- Object
- Wamp::Worker::Handle
- Defined in:
- lib/wamp/worker/config.rb
Overview
region Storage Objects
Direct Known Subclasses
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(klass, method, options) ⇒ Handle
constructor
A new instance of Handle.
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, ) @klass = klass @method = method @options = unless klass.ancestors.include? BaseHandler raise(ArgumentError, "'klass' must be a Wamp::Worker::Handler type") end end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
9 10 11 |
# File 'lib/wamp/worker/config.rb', line 9 def klass @klass end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
9 10 11 |
# File 'lib/wamp/worker/config.rb', line 9 def method @method end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/wamp/worker/config.rb', line 9 def @options end |