Sha256: 5aad64289c9dc037044612225e4825805e9ec24a756b6d28797529a4fcc00110

Contents?: true

Size: 242 Bytes

Versions: 4

Compression:

Stored size: 242 Bytes

Contents

class LoopingService
  include SimpleService

  commands :add_one

  def self.call(kwargs)
    count = kwargs

    3.times do
      count = super(count)
    end

    count
  end

  def add_one(count:)
    success(count: count + 1)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_service-2.1.6 spec/support/looping_service.rb
simple_service-2.1.5 spec/support/looping_service.rb
simple_service-2.1.4 spec/support/looping_service.rb
simple_service-2.1.3 spec/support/looping_service.rb