class Alephant::Renderer::Response

Attributes

content[RW]

Public Class Methods

new(content) click to toggle source
# File lib/alephant/renderer/response.rb, line 8
def initialize(content)
  @content = content
end

Public Instance Methods

to_json() click to toggle source
# File lib/alephant/renderer/response.rb, line 12
def to_json
  ::JSON.generate 'content' => content
end