Class: Alephant::Renderer::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/alephant/renderer/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contentObject

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



5
6
7
# File 'lib/alephant/renderer/response.rb', line 5

def content
  @content
end

Instance Method Details

#to_jsonObject



6
7
8
# File 'lib/alephant/renderer/response.rb', line 6

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