2009-02-25 09:22:11 +01:00
|
|
|
class Event < CouchRest::ExtendedDocument
|
2009-05-28 03:16:50 +02:00
|
|
|
use_database DB
|
2009-02-25 09:22:11 +01:00
|
|
|
|
|
|
|
property :subject
|
2009-10-24 03:42:48 +02:00
|
|
|
property :occurs_at, :cast_as => 'Time', :init_method => 'parse'
|
|
|
|
property :end_date, :cast_as => 'Date', :init_method => 'parse'
|
2009-09-03 04:54:25 +02:00
|
|
|
|
|
|
|
|
2009-02-25 09:22:11 +01:00
|
|
|
end
|