Class: CSKit::Volumes::Bible::Verse
- Inherits:
-
Struct
- Object
- Struct
- CSKit::Volumes::Bible::Verse
- Defined in:
- lib/cskit/resources/volumes/bible.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text
35 36 37 |
# File 'lib/cskit/resources/volumes/bible.rb', line 35 def text @text end |
Class Method Details
.from_hash(hash) ⇒ Object
40 41 42 |
# File 'lib/cskit/resources/volumes/bible.rb', line 40 def self.from_hash(hash) Verse.new(hash['text']) end |
Instance Method Details
#to_hash ⇒ Object
36 37 38 |
# File 'lib/cskit/resources/volumes/bible.rb', line 36 def to_hash { 'text' => text } end |