Class: CSKit::Readers::Reading
- Inherits:
-
Struct
- Object
- Struct
- CSKit::Readers::Reading
- Defined in:
- lib/cskit/readers/reading.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#chapter ⇒ Object
Returns the value of attribute chapter.
-
#citation ⇒ Object
Returns the value of attribute citation.
-
#texts ⇒ Object
Returns the value of attribute texts.
-
#verse ⇒ Object
Returns the value of attribute verse.
Instance Method Summary collapse
Instance Attribute Details
#chapter ⇒ Object
Returns the value of attribute chapter
6 7 8 |
# File 'lib/cskit/readers/reading.rb', line 6 def chapter @chapter end |
#citation ⇒ Object
Returns the value of attribute citation
6 7 8 |
# File 'lib/cskit/readers/reading.rb', line 6 def citation @citation end |
#texts ⇒ Object
Returns the value of attribute texts
6 7 8 |
# File 'lib/cskit/readers/reading.rb', line 6 def texts @texts end |
#verse ⇒ Object
Returns the value of attribute verse
6 7 8 |
# File 'lib/cskit/readers/reading.rb', line 6 def verse @verse end |
Instance Method Details
#annotated? ⇒ Boolean
15 16 17 |
# File 'lib/cskit/readers/reading.rb', line 15 def annotated? false end |
#params ⇒ Object
7 8 9 |
# File 'lib/cskit/readers/reading.rb', line 7 def params @params || {} end |
#to_annotated_reading ⇒ Object
11 12 13 |
# File 'lib/cskit/readers/reading.rb', line 11 def to_annotated_reading AnnotatedReading.new(texts, citation, chapter, verse) end |
#to_hash ⇒ Object
19 20 21 22 23 24 |
# File 'lib/cskit/readers/reading.rb', line 19 def to_hash { texts: texts, chapter: chapter.to_hash } end |