lib/videojuicer/criterion/request.rb in videojuicer-vj-sdk-0.1.5 vs lib/videojuicer/criterion/request.rb in videojuicer-vj-sdk-0.1.12
- old
+ new
@@ -1,24 +1,15 @@
+require File.join(File.dirname(__FILE__), "base")
+
module Videojuicer
module Criterion
- class Request
- include Videojuicer::Resource
- include Videojuicer::Exceptions
-
- property :referrer, String
- property :created_at, DateTime
- property :updated_at, DateTime
-
- def self.plural_name
- "criteria"
- end
-
- def self.singular_name
- "criterion"
- end
+ class Request < Base
- def self.base_path
- "/criteria/request"
+ property :referrer, String, :nullable => false
+ property :exclude, Boolean
+
+ def matcher_keys
+ [:referrer, :exclude]
end
end
end
end
\ No newline at end of file