Class: RicherText::Nodes::Image
- Inherits:
-
RicherText::Node
- Object
- RicherText::Node
- RicherText::Nodes::Image
- Defined in:
- lib/richer_text/nodes/image.rb
Constant Summary
Constants inherited from RicherText::Node
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
#signed_id ⇒ Object
8 9 10 |
# File 'lib/richer_text/nodes/image.rb', line 8 def signed_id @signed_id = attrs['signedId'] end |
#src ⇒ Object
4 5 6 |
# File 'lib/richer_text/nodes/image.rb', line 4 def src @src ||= attrs['src'] end |
#width ⇒ Object
12 13 14 |
# File 'lib/richer_text/nodes/image.rb', line 12 def width attrs['width'] end |