module MakeServiceable::ClassMethods

Public Instance Methods

call(*args) click to toggle source
# File lib/make_serviceable.rb, line 24
def call(*args)
  obj = new(*args)
  circuit.run do
    obj.call
  end
end
circuit() click to toggle source
# File lib/make_serviceable.rb, line 20
def circuit
  Circuitbox.circuit(service_name, circuit_options)
end
circuit_options() click to toggle source
# File lib/make_serviceable.rb, line 16
def circuit_options
  {}
end
service_name() click to toggle source
# File lib/make_serviceable.rb, line 12
def service_name
  self.name
end