Sha256: b8abc2c71380fdd98e7b8cd7a0012efabec1f0093e0df98c92b714c5479ad4a0

Contents?: true

Size: 530 Bytes

Versions: 10

Compression:

Stored size: 530 Bytes

Contents

module Videojuicer
  module Criterion
    class Time
      
      include Videojuicer::Resource
      
      belongs_to :campaign, :class=>Videojuicer::Campaign
      
      property :campaign_id, Integer
      property :until, DateTime
      property :from, DateTime
      
      def self.singular_name
        "criterion"
      end
      
      def self.base_path(options={})
        "/criteria/#{self.to_s.split("::").last.snake_case}"
      end
      
      def matcher_keys
        [:until, :from]
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
vj-sdk-0.6.9 lib/videojuicer/criterion/time.rb
vj-sdk-0.6.8 lib/videojuicer/criterion/time.rb
vj-sdk-0.6.7 lib/videojuicer/criterion/time.rb
vj-sdk-0.6.5 lib/videojuicer/criterion/time.rb
vj-sdk-0.6.4 lib/videojuicer/criterion/time.rb
vj-sdk-0.6.3 lib/videojuicer/criterion/time.rb
vj-sdk-0.6.1 lib/videojuicer/criterion/time.rb
vj-sdk-0.6.0 lib/videojuicer/criterion/time.rb
vj-sdk-0.5.6 lib/videojuicer/criterion/time.rb
vj-sdk-0.5.5 lib/videojuicer/criterion/time.rb