Method: Riddl::Implementation#initialize
- Defined in:
- lib/ruby/riddl/implementation.rb
#initialize(request) ⇒ Implementation
Returns a new instance of Implementation.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ruby/riddl/implementation.rb', line 3 def initialize(request) @request = request @h = request[:h] # incoming riddl headers @p = request[:p] # incoming riddl parameters @r = request[:r] # the matching resource path (fixed) @s = request[:s] # the matching resource path schema (fixed) @match = request[:match] # the matching resource path schema for current resource, important for recursive @env = request[:env] # environment (all headers) @a = request[:a] # args to run command @m = request[:m] # get, put, post, ... @headers = [] end |