Module: Pavlov::Operation::ClassMethods
- Defined in:
- lib/pavlov/operation.rb,
lib/pavlov/alpha_compatibility.rb
Instance Method Summary collapse
- #arguments(*args) ⇒ Object
-
#perform(*args) ⇒ Object
make our interactors behave as Resque jobs.
- #queue ⇒ Object
Instance Method Details
#arguments(*args) ⇒ Object
61 62 63 64 65 66 |
# File 'lib/pavlov/alpha_compatibility.rb', line 61 def arguments(*args) # Add generic attribute for each argument args.each do |argument| attribute argument, Object, default: nil end end |
#perform(*args) ⇒ Object
make our interactors behave as Resque jobs
70 71 72 |
# File 'lib/pavlov/operation.rb', line 70 def perform(*args) new(*args).call end |
#queue ⇒ Object
74 75 76 |
# File 'lib/pavlov/operation.rb', line 74 def queue @queue || :interactor_operations end |