Sha256: 833019c069e5efc53fb10747d804c0fa764d9ae05d61c6bf12a95c92667864fe

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

require 'json'

module Alephant
  module Renderer
    class Response
      attr_accessor :content

      def initialize(content)
        @content = content
      end

      def to_json
        ::JSON.generate 'content' => content
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alephant-renderer-3.2.0 lib/alephant/renderer/response.rb
alephant-renderer-3.1.0 lib/alephant/renderer/response.rb