Class: Alephant::Publisher::Views::Json
- Inherits:
-
Object
- Object
- Alephant::Publisher::Views::Json
- Includes:
- Base
- Defined in:
- lib/alephant/publisher/views/json.rb
Instance Method Summary collapse
Methods included from Base
Instance Method Details
#render ⇒ Object
14 15 16 |
# File 'lib/alephant/publisher/views/json.rb', line 14 def render JSON.generate(to_h) end |
#setup ⇒ Object
10 11 12 |
# File 'lib/alephant/publisher/views/json.rb', line 10 def setup @content_type = "application/json" end |