Service Object Interface

Curated ago by @vaporyhumo

Description

Simple example on how to implement the typical .call interface for plain ruby service objects.

1
2
3
4
5
class User
  def greet
    Greeter.call(name)
  end
end

Just an example on how you would call the service.