lib/videojuicer/criterion/week_day.rb in videojuicer-vj-sdk-0.1.5 vs lib/videojuicer/criterion/week_day.rb in videojuicer-vj-sdk-0.1.12

- old
+ new

@@ -1,24 +1,20 @@ +require File.join(File.dirname(__FILE__), "base") + module Videojuicer module Criterion - class WeekDay - include Videojuicer::Resource - include Videojuicer::Exceptions - - property :day, Integer - property :created_at, DateTime - property :updated_at, DateTime - - def self.plural_name - "criteria" - end - - def self.singular_name - "criterion" - end + class WeekDay < Base + property :monday, Boolean + property :tuesday, Boolean + property :wednesday, Boolean + property :thursday, Boolean + property :friday, Boolean + property :saturday, Boolean + property :sunday, Boolean + property :exclude, Boolean - def self.base_path - "/criteria/week_day" + def matcher_keys + [:monday, :tuesday, :wednesday, :thursday, :friday, :saturday, :sunday, :exclude] end end end end \ No newline at end of file