Class: ProxyService::NullWorker
- Inherits:
-
Object
- Object
- ProxyService::NullWorker
- Defined in:
- lib/proxy_service/null_worker.rb
Defined Under Namespace
Classes: NullMessage
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ NullWorker
constructor
A new instance of NullWorker.
- #ready? ⇒ Boolean
- #release ⇒ Object
- #subscribe ⇒ Object
Constructor Details
#initialize ⇒ NullWorker
Returns a new instance of NullWorker.
5 6 7 |
# File 'lib/proxy_service/null_worker.rb', line 5 def initialize @message = NullMessage.new('{}') end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
3 4 5 |
# File 'lib/proxy_service/null_worker.rb', line 3 def @message end |
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'lib/proxy_service/null_worker.rb', line 9 def call(*) # no-op end |
#ready? ⇒ Boolean
13 14 15 |
# File 'lib/proxy_service/null_worker.rb', line 13 def ready? true end |
#release ⇒ Object
21 22 23 |
# File 'lib/proxy_service/null_worker.rb', line 21 def release(*) # no-op end |
#subscribe ⇒ Object
17 18 19 |
# File 'lib/proxy_service/null_worker.rb', line 17 def subscribe # no-op end |