Method: Riddl::WebSocketImplementation#initialize
- Defined in:
- lib/ruby/riddl/implementation.rb
#initialize(ws) ⇒ WebSocketImplementation
Returns a new instance of WebSocketImplementation.
65 66 67 68 69 70 71 72 |
# File 'lib/ruby/riddl/implementation.rb', line 65 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 |