Class: Pageflow::EmbedCodeHelper::EntrySnippet
- Inherits:
-
Object
- Object
- Pageflow::EmbedCodeHelper::EntrySnippet
- Defined in:
- app/helpers/pageflow/embed_code_helper.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(routes, entry) ⇒ EntrySnippet
constructor
A new instance of EntrySnippet.
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
#call ⇒ Object
13 14 15 |
# File 'app/helpers/pageflow/embed_code_helper.rb', line 13 def call %'<iframe src="#{url(entry)}" allowfullscreen></iframe>' end |