Class: Kreuzberg::Result::DjotContent::Footnote
- Inherits:
-
Object
- Object
- Kreuzberg::Result::DjotContent::Footnote
- Defined in:
- lib/kreuzberg/djot_content.rb
Overview
Represents a footnote in Djot content
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label:, content:) ⇒ Footnote
constructor
A new instance of Footnote.
- #to_h ⇒ Object
Constructor Details
#initialize(label:, content:) ⇒ Footnote
Returns a new instance of Footnote.
127 128 129 130 |
# File 'lib/kreuzberg/djot_content.rb', line 127 def initialize(label:, content:) @label = label @content = content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
125 126 127 |
# File 'lib/kreuzberg/djot_content.rb', line 125 def content @content end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
125 126 127 |
# File 'lib/kreuzberg/djot_content.rb', line 125 def label @label end |
Instance Method Details
#to_h ⇒ Object
132 133 134 135 136 137 |
# File 'lib/kreuzberg/djot_content.rb', line 132 def to_h { label: @label, content: @content } end |