Exception: SimpleInteraction::InteractionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple_interaction.rb

Overview

Interactions

Interactions are meant to keep controllers and models slim (YAY). Keep intention of class clear when using interactions for example to create a user a class should be name Users::Create.

example of usage:

 class Klass
   include Interaction

   requires :param1, :param2     

   private

   def run
     method
   end

   def method
     param1 * param2
   end

 end

Klass.run(param1: param1, param2: param2)

Direct Known Subclasses

NotImplemented, RequirementsNotMet