lib/videojuicer/criterion/time.rb in videojuicer-vj-sdk-0.1.5 vs lib/videojuicer/criterion/time.rb in videojuicer-vj-sdk-0.1.12
- old
+ new
@@ -1,25 +1,15 @@
+require File.join(File.dirname(__FILE__), "base")
+
module Videojuicer
module Criterion
- class Time
- include Videojuicer::Resource
- include Videojuicer::Exceptions
-
- property :until, String
- property :after, String
- property :created_at, DateTime
- property :updated_at, DateTime
-
- def self.plural_name
- "criteria"
- end
-
- def self.singular_name
- "criterion"
- end
+ class Time < Base
- def self.base_path
- "/criteria/time"
+ property :until, DateTime
+ property :from, DateTime
+
+ def matcher_keys
+ [:until, :from]
end
end
end
end
\ No newline at end of file