Sha256: 918639b61d9554b4b3da6433d16ac3ee96832db1582becc9f47c4b07e9a1e17b
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
# frozen_string_literal: true require "wamp" require "date" require_relative "included_app" # SystemApp class Example < Wamp::App register echo: "io.xconn.echo", current_date: "io.xconn.date.get" def initialize super include_app(IncludedApp.new, "test.") end def echo(invocation) Wamp::Type::Result.new(args: invocation.args, kwargs: invocation.kwargs, details: invocation.details) end def current_date(_invocation) Wamp::Type::Result.new(args: Date.today.iso8601) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xconn-0.1.2 | example/sample/example.rb |
xconn-0.1.1 | example/sample/example.rb |
xconn-0.1.0 | example/sample/example.rb |