Sha256: fb81f321f83176cb7e5df6f9d0796172a986a90788512182db0cb495407dcdc3

Contents?: true

Size: 436 Bytes

Versions: 9

Compression:

Stored size: 436 Bytes

Contents

# rubocop:disable Naming/UncommunicativeMethodParamName, Lint/UnusedMethodArgument

module ExplicitService
  include ::Simple::Service

  def explicit_test(a:, b:)
    # "this is a test; a is #{a.inspect}, b is #{b.inspect}"
    "hello from ExplicitService#test"
  end

  def explicit_echo(one, two, a:, b:)
    "one: [#{one}]/two: [#{two}]/a: [#{a}]/b: [#{b}]"
  end

  def echo_context
    ::Simple::Service.context.inspect
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
simple-httpd-0.4.3 examples/services/explicit_example_service.rb
simple-httpd-0.4.2 examples/services/explicit_example_service.rb
simple-httpd-0.4.1 examples/services/explicit_example_service.rb
simple-httpd-0.4.0 examples/services/explicit_example_service.rb
simple-httpd-0.3.5 examples/services/explicit_example_service.rb
simple-httpd-0.3.4 examples/services/explicit_example_service.rb
simple-httpd-0.3.3 examples/services/explicit_example_service.rb
simple-httpd-0.3.1 examples/services/explicit_example_service.rb
simple-httpd-0.3.0 examples/services/explicit_example_service.rb