class Riddl::SSEImplementation
Public Class Methods
Source
# File lib/ruby/riddl/implementation.rb, line 29 def initialize(ws) @ws = ws @r = ws[:r] # the matching resource path @s = ws[:s] # the matching resource path schema @match = ws[:match] # the path of the branch matching, important for recursive @env = ws[:env] # environment (all headers) @a = ws[:a] # args to run command end
Public Instance Methods
Source
# File lib/ruby/riddl/implementation.rb, line 49 def io=(connection) @ws[:io] = connection end
Source
# File lib/ruby/riddl/implementation.rb, line 42 def send(data) @ws[:io].send_with_id 'data', data end
Source
# File lib/ruby/riddl/implementation.rb, line 45 def send_with_id(id,data) @ws[:io].send_with_id id, data end