Class: CSKit::Parsers::Bible::Citation
- Inherits:
-
Struct
- Object
- Struct
- CSKit::Parsers::Bible::Citation
- Defined in:
- lib/cskit/parsers/bible/bible_parser.rb
Instance Attribute Summary collapse
-
#book ⇒ Object
Returns the value of attribute book.
-
#chapter_list ⇒ Object
Returns the value of attribute chapter_list.
Instance Method Summary collapse
Instance Attribute Details
#book ⇒ Object
Returns the value of attribute book
9 10 11 |
# File 'lib/cskit/parsers/bible/bible_parser.rb', line 9 def book @book end |
#chapter_list ⇒ Object
Returns the value of attribute chapter_list
9 10 11 |
# File 'lib/cskit/parsers/bible/bible_parser.rb', line 9 def chapter_list @chapter_list end |
Instance Method Details
#to_hash ⇒ Object
14 15 16 17 18 19 |
# File 'lib/cskit/parsers/bible/bible_parser.rb', line 14 def to_hash { book: book, chapters: chapter_list.map(&:to_hash) } end |
#to_s ⇒ Object
10 11 12 |
# File 'lib/cskit/parsers/bible/bible_parser.rb', line 10 def to_s "#{book} #{chapter_list.map(&:to_s).join('; ')}" end |