summaryrefslogtreecommitdiff
path: root/model.rb
diff options
context:
space:
mode:
Diffstat (limited to 'model.rb')
-rw-r--r--model.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/model.rb b/model.rb
index 5332629..2b71eaa 100644
--- a/model.rb
+++ b/model.rb
@@ -1,13 +1,20 @@
require 'ohm'
+require 'ohm/contrib'
+#require 'redis/objects'
+#@@redis = Redis.new(:thread_safe=>true)#(:host => '127.0.0.1', :port => 6379)
class ToxCreateModel < Ohm::Model
+ include Ohm::Callbacks
+ include Ohm::Typecast
+ include Ohm::Timestamping
+
attribute :name
attribute :warnings
attribute :error_messages
attribute :type
attribute :status
- attribute :created_at
+ attribute :created_at, Date
attribute :task_uri
attribute :uri