Class: Interactor
- Inherits:
-
Object
- Object
- Interactor
- Includes:
- Pavlov::Operation
- Defined in:
- lib/generators/pavlov/templates/backend/interactor.rb
Instance Method Summary collapse
-
#authorized? ⇒ Boolean
If you want your interactors to be compatible with a backgrounding daemon, you can use this base class to add support.
Methods included from Pavlov::Operation
Methods included from Pavlov::Validations
#validate_hexadecimal_string, #validate_in_set, #validate_integer, #validate_integer_string, #validate_nonempty_string, #validate_not_nil, #validate_regex, #validate_string
Methods included from Pavlov::Helpers
#command, #interactor, #old_command, #old_interactor, #old_query, #pavlov_options, #query
Instance Method Details
#authorized? ⇒ Boolean
If you want your interactors to be compatible with a backgrounding daemon, you can use this base class to add support.
Example for Resque:
def self.perform(*args)
new(*args).call
end
13 14 15 |
# File 'lib/generators/pavlov/templates/backend/interactor.rb', line 13 def raise NotImplementedError end |