Class: Oughtve::Verse
- Inherits:
-
Object
- Object
- Oughtve::Verse
- Includes:
- DataMapper::Resource
- Defined in:
- lib/oughtve/verse.rb
Overview
A Verse is a single note or entry.
Instance Method Summary collapse
-
#to_hash ⇒ Object
Hash representation of data.
Instance Method Details
#to_hash ⇒ Object
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 |