Sha256: d9c1a136b5eb05f1e735ad18df197930a1d2740fde4b90f2176e6755293d2889

Contents?: true

Size: 183 Bytes

Versions: 4

Compression:

Stored size: 183 Bytes

Contents

require "json"

module Alephant
  module Renderer
    class Response < Struct.new(:content)
      def to_json
        ::JSON.generate "content" => content
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
alephant-renderer-3.0.0 lib/alephant/renderer/response.rb
alephant-renderer-2.0.3 lib/alephant/renderer/response.rb
alephant-renderer-2.0.2 lib/alephant/renderer/response.rb
alephant-renderer-2.0.1 lib/alephant/renderer/response.rb