Sha256: 0f635b7d22f284b2aa6a7aeafb0d41eeb58826b3237747c090118a71b9b5f786

Contents?: true

Size: 181 Bytes

Versions: 7

Compression:

Stored size: 181 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

7 entries across 7 versions & 1 rubygems

Version Path
alephant-renderer-2.0.0 lib/alephant/renderer/response.rb
alephant-renderer-1.0.5 lib/alephant/renderer/response.rb
alephant-renderer-1.0.4 lib/alephant/renderer/response.rb
alephant-renderer-1.0.3 lib/alephant/renderer/response.rb
alephant-renderer-1.0.2 lib/alephant/renderer/response.rb
alephant-renderer-1.0.1 lib/alephant/renderer/response.rb
alephant-renderer-1.0.0 lib/alephant/renderer/response.rb