Class: RicherText::Nodes::IframelyEmbed

Inherits:
RicherText::Node show all
Defined in:
lib/richer_text/nodes/iframely_embed.rb

Constant Summary

Constants inherited from RicherText::Node

RicherText::Node::STYLES

Instance Attribute Summary

Attributes inherited from RicherText::Node

#attrs, #children, #json, #type

Instance Method Summary collapse

Methods inherited from RicherText::Node

#accept, build, #initialize, #style

Constructor Details

This class inherits a constructor from RicherText::Node

Instance Method Details

#hrefObject



4
5
6
# File 'lib/richer_text/nodes/iframely_embed.rb', line 4

def href
  @attrs["href"]
end

#htmlObject



8
9
10
11
12
# File 'lib/richer_text/nodes/iframely_embed.rb', line 8

def html
  "<div class='iframely'>
    #{@attrs["previewHtml"]}
  </div>"
end