Sha256: a3a055e5349dbc3085916ff430b0a209472f6456dd6ba3526f5cfd419cd3ed18

Contents?: true

Size: 343 Bytes

Versions: 7

Compression:

Stored size: 343 Bytes

Contents

require 'alephant/publisher/views/base'
require 'json'

module Alephant
  module Publisher
    module Views
      class Json
        include ::Alephant::Publisher::Views::Base

        def setup
          @content_type = "application/json"
        end

        def render
          JSON.generate(to_h)
        end

      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
alephant-publisher-0.6.10 lib/alephant/publisher/views/json.rb
alephant-publisher-0.6.9 lib/alephant/publisher/views/json.rb
alephant-publisher-0.6.8 lib/alephant/publisher/views/json.rb
alephant-publisher-0.6.7 lib/alephant/publisher/views/json.rb
alephant-publisher-0.6.6 lib/alephant/publisher/views/json.rb
alephant-publisher-0.6.5 lib/alephant/publisher/views/json.rb
alephant-publisher-0.6.4 lib/alephant/publisher/views/json.rb