Skip to main content

Setup in a Ruby project

  • As always, add a new entry to your Gemfile as the first step.

    gem "convenient_service", "~> 0.19.1"
  • Then run bundle to install the gem.

    bundle install
  • Once finished, require the gem.

    require "convenient_service"
  • To ensure the lib is properly loaded you can define the following service.

    class Service
    include ConvenientService::Standard::Config

    def result
    success
    end
    end
  • And run it by the command below.

    Service.result
  • That's it. Happy coding!