Class: Alephant::Publisher::PublishTask
- Inherits:
-
Object
- Object
- Alephant::Publisher::PublishTask
- Includes:
- Callable
- Defined in:
- lib/alephant/publisher/publish_task.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#opts ⇒ Object
readonly
Returns the value of attribute opts.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(opts, message) ⇒ PublishTask
constructor
A new instance of PublishTask.
Constructor Details
#initialize(opts, message) ⇒ PublishTask
Returns a new instance of PublishTask.
14 15 16 17 |
# File 'lib/alephant/publisher/publish_task.rb', line 14 def initialize(opts, ) = @opts = opts end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
12 13 14 |
# File 'lib/alephant/publisher/publish_task.rb', line 12 def end |
#opts ⇒ Object (readonly)
Returns the value of attribute opts.
12 13 14 |
# File 'lib/alephant/publisher/publish_task.rb', line 12 def opts @opts end |
Instance Method Details
#call ⇒ Object
19 20 21 22 23 24 |
# File 'lib/alephant/publisher/publish_task.rb', line 19 def call unless .nil? Writer.new(opts, ).run! .delete end end |