Class: CSKit::Volumes::Bible::Verse

Inherits:
Struct
  • Object
show all
Defined in:
lib/cskit/resources/volumes/bible.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of 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_hashObject



36
37
38
# File 'lib/cskit/resources/volumes/bible.rb', line 36

def to_hash
  { 'text' => text }
end