Sha256: 9be2f695391be6c41d47e3c33203a31c7bc29a8a2f29b351c5c8bda9f0f5a070
Contents?: true
Size: 301 Bytes
Versions: 2
Compression:
Stored size: 301 Bytes
Contents
require File.dirname(__FILE__) + '/json_format_strategy' module Sparrow module Strategies class RackBody < JsonFormatStrategy register_json_format def match?(input) input.respond_to?(:body) end def convert(input) input.body end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cp-sparrow-0.0.12 | lib/sparrow/strategies/json_format_strategies/rack_body.rb |
cp-sparrow-0.0.11 | lib/sparrow/strategies/json_format_strategies/rack_body.rb |