Class: Interactor

Inherits:
Object
  • Object
show all
Includes:
Pavlov::Operation
Defined in:
lib/generators/pavlov/templates/backend/interactor.rb

Instance Method Summary collapse

Methods included from Pavlov::Operation

#call, #validate

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

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/generators/pavlov/templates/backend/interactor.rb', line 13

def authorized?
  raise NotImplementedError
end