server/lib/sinatra/rabbit.rb
# Return a hash of all params, the params statically defined for this
# operation plus the params defined by any features in the +driver+
# that might modify this operation
Return a hash of all params, the params statically defined for this
operation plus the params defined by any features in the +driver+
that might modify this operation
Return a hash of all params the params statically defined for this operation plus the params defined by any features in the + driver + that might modify this operation
def effective_params(driver)
        driver.features(@collection.name).collect do |f|
          f.decl.operation(@name)
        end.flatten.select { |op| op }.inject(params.dup) do |result, fop|
          fop.params.each_key do |k|
            if result.has_key?(k)
              raise DuplicateParamException, "Parameter '#{k}' for operation #{fop.name} in collection #{@collection.name}"
            else
              result[k] = fop.params[k]
            end
          end
          result
        end
      end
def effective_params ( driver ) driver . features ( @collection . name ) . collect do | f | f . decl . operation ( @name ) end . flatten . select { | op | op } . inject ( params . dup ) do | result , fop | fop . params . each_key do | k | if result . has_key? ( k ) raise DuplicateParamException , "Parameter '#{k}' for operation #{fop.name} in collection #{@collection.name}" else result [ k ] = fop . params [ k ] end end result end end
Return a hash of all params, the params statically defined for this
operation plus the params defined by any features in the +driver+
that might modify this operation
Return a hash of all params the params statically defined for this operation plus the params defined by any features in the + driver + that might modify this operation
driver