Class: Hypernova::BlankRenderer

Inherits:
Object
  • Object
show all
Defined in:
lib/hypernova/blank_renderer.rb

Instance Method Summary collapse

Constructor Details

#initialize(job) ⇒ BlankRenderer

Returns a new instance of BlankRenderer.



4
5
6
# File 'lib/hypernova/blank_renderer.rb', line 4

def initialize(job)
  @job = job
end

Instance Method Details

#renderObject



8
9
10
11
12
13
# File 'lib/hypernova/blank_renderer.rb', line 8

def render
  <<-HTML
    <div data-hypernova-key="#{key}" data-hypernova-id="#{id}"></div>
    <script type="application/json" data-hypernova-key="#{key}" data-hypernova-id="#{id}"><!--#{encode}--></script>
  HTML
end