Class: Pageflow::EmbedCodeHelper::EntrySnippet

Inherits:
Object
  • Object
show all
Defined in:
app/helpers/pageflow/embed_code_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(routes, entry) ⇒ EntrySnippet

Returns a new instance of EntrySnippet.



8
9
10
11
# File 'app/helpers/pageflow/embed_code_helper.rb', line 8

def initialize(routes, entry)
  @routes = routes
  @entry = entry
end

Instance Method Details

#callObject



13
14
15
# File 'app/helpers/pageflow/embed_code_helper.rb', line 13

def call
  %'<iframe src="#{url(entry)}" scrolling="no" allowfullscreen></iframe>'
end