Sha256: de0ed1863aaf1ae7debeb16f377d3dbc7a4b3fd15b8aae67dd88f06cceb7303a

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

class ModifyFooBar
  include SimpleService

  def call(foo:, bar:, command_one_success:, command_two_success:)
    modified_foo = "modified #{foo}"
    modified_bar = "modified #{bar}"

    if command_one_success
      success(
        modified_foo: modified_foo,
        modified_bar: modified_bar,
        command_two_success: command_two_success,
      )
    else
      failure(message: 'stuff went wrong with command one')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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