9 lines
No EOL
226 B
Ruby
9 lines
No EOL
226 B
Ruby
class Event < CouchRest::ExtendedDocument
|
|
use_database DB
|
|
|
|
property :subject
|
|
property :occurs_at, :cast_as => 'Time', :init_method => 'parse'
|
|
property :end_date, :cast_as => 'Date', :init_method => 'parse'
|
|
|
|
|
|
end |