Class: Alephant::Publisher::Views::Json

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/alephant/publisher/views/json.rb

Instance Method Summary collapse

Methods included from Base

included

Instance Method Details

#renderObject



14
15
16
# File 'lib/alephant/publisher/views/json.rb', line 14

def render
  JSON.generate(to_h)
end

#setupObject



10
11
12
# File 'lib/alephant/publisher/views/json.rb', line 10

def setup
  @content_type = "application/json"
end