No commit activity in last 3 years
No release in over 3 years
Make it easier to create user based operations
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

SubstanceOperation

Make it easier to create user based operations

Build Status

Usage examples

Create a class based on the Substance::Operation class, with its bespoke process method:

class UserOperation < Substance::Operation
  def process(*)
    true
  end
end

Initialize it with a user and run it with the necessary parameters for the operation:

operation = UserOperation.new(user)
operation.process(params)
result = operation.success?

License

SubstanceOperation is licensed under the MIT license. See LICENSE for details.