Skip to content

Material-Dev/base-service-ruby

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base Service Model for Ruby

What is this?

It's a small library to act as a base service for others to inherit from. It provides a simple way to return a result from a service, and to handle errors.

Usage

Calling a service looks like: MyService.call(opt1: "foo", opt2: "bar")

Configuration

# to use globally from congif/application.rb
require 'base_service'

Testing

If using docker

  • Build the image: docker build -t base-service-ruby .
  • Run the tests: docker run -it base-service-ruby rake

If using local ruby

  • Run the tests: rake

Copyright and License

Copyright (c) [2026] [icanmakeitbetter]

This project is licensed under the MIT License.

About

A small class to encapsulate results from service objects, poros etc

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors