Hello. This repo contains source code for medium article Service Objects as functions: a functional approach to build business flows in Ruby On Rails
- Ruby 3.2.2
- Install Ruby 3.2.2
- Install gem bundle
- Clone repo
- Run bundle install to install dependencies
- Run tests using rspec
bundle exec rspec
- app - original code from the article showcasing service functions pattern
- app/handle_errors/exceptions - service functions pattern with Ruby way of error handling using exceptions
- app/handle_errors/ok_error - service functions pattern with Elixir style error handling