Class: AppfluxRuby::MessageBuilders::DelayedJob
- Inherits:
-
Object
- Object
- AppfluxRuby::MessageBuilders::DelayedJob
- Defined in:
- lib/appflux_ruby/message_builders/delayed_job.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ DelayedJob
constructor
A new instance of DelayedJob.
- #to_hash ⇒ Object
Constructor Details
#initialize(options) ⇒ DelayedJob
Returns a new instance of DelayedJob.
5 6 7 |
# File 'lib/appflux_ruby/message_builders/delayed_job.rb', line 5 def initialize @options = end |
Class Method Details
.to_hash(options) ⇒ Object
21 22 23 |
# File 'lib/appflux_ruby/message_builders/delayed_job.rb', line 21 def self.to_hash new().to_hash end |
Instance Method Details
#to_hash ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/appflux_ruby/message_builders/delayed_job.rb', line 9 def to_hash _handler_object = YAML.load(@options['handler']) @options[:dj_handler] = _handler_object.inspect @options[:object] = _handler_object.object.inspect @options[:method_name] = _handler_object.method_name @options[:method_arguments] = _handler_object.args @options[:display_name] = _handler_object.display_name @options end |