Class: Alephant::Renderer::Views::Envelope

Inherits:
Json
  • Object
show all
Defined in:
lib/alephant/renderer/views/envelope.rb

Instance Method Summary collapse

Methods inherited from Json

#setup

Methods included from Base

included

Instance Method Details

#body_lastObject



12
13
14
# File 'lib/alephant/renderer/views/envelope.rb', line 12

def body_last
  []
end

#headObject



8
9
10
# File 'lib/alephant/renderer/views/envelope.rb', line 8

def head
  []
end

#localeObject



16
17
18
# File 'lib/alephant/renderer/views/envelope.rb', line 16

def locale
  :en
end

#renderObject



20
21
22
23
24
25
26
# File 'lib/alephant/renderer/views/envelope.rb', line 20

def render
  {
    head:       head,
    bodyInline: renderer_engine.render(self),
    bodyLast:   body_last
  }.to_json
end