Class: CSKit::Readers::Reading

Inherits:
Struct
  • Object
show all
Defined in:
lib/cskit/readers/reading.rb

Direct Known Subclasses

AnnotatedReading

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#chapterObject

Returns the value of attribute chapter

Returns:

  • (Object)

    the current value of chapter



6
7
8
# File 'lib/cskit/readers/reading.rb', line 6

def chapter
  @chapter
end

#citationObject

Returns the value of attribute citation

Returns:

  • (Object)

    the current value of citation



6
7
8
# File 'lib/cskit/readers/reading.rb', line 6

def citation
  @citation
end

#textsObject

Returns the value of attribute texts

Returns:

  • (Object)

    the current value of texts



6
7
8
# File 'lib/cskit/readers/reading.rb', line 6

def texts
  @texts
end

#verseObject

Returns the value of attribute verse

Returns:

  • (Object)

    the current value of verse



6
7
8
# File 'lib/cskit/readers/reading.rb', line 6

def verse
  @verse
end

Instance Method Details

#annotated?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/cskit/readers/reading.rb', line 15

def annotated?
  false
end

#paramsObject



7
8
9
# File 'lib/cskit/readers/reading.rb', line 7

def params
  @params || {}
end

#to_annotated_readingObject



11
12
13
# File 'lib/cskit/readers/reading.rb', line 11

def to_annotated_reading
  AnnotatedReading.new(texts, citation, chapter, verse)
end

#to_hashObject



19
20
21
22
23
24
# File 'lib/cskit/readers/reading.rb', line 19

def to_hash
  {
    texts: texts,
    chapter: chapter.to_hash
  }
end