Class: Oughtve::Verse

Inherits:
Object
  • Object
show all
Includes:
DataMapper::Resource
Defined in:
lib/oughtve/verse.rb

Overview

A Verse is a single note or entry.

Instance Method Summary collapse

Instance Method Details

#to_hashObject

Hash representation of data.



75
76
77
78
79
# File 'lib/oughtve/verse.rb', line 75

def to_hash()
  hash = {:text => text, :time => time}
  hash[:closed] = struck if struck
  hash
end