Sha256: ec8b1a0eb75c86adf76e3d1aad7da4514381bebb5272960bacbc18a9ebea3afd

Contents?: true

Size: 535 Bytes

Versions: 26

Compression:

Stored size: 535 Bytes

Contents

module Videojuicer
  module Criterion
    class DateRange
      
      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

26 entries across 26 versions & 1 rubygems

Version Path
vj-sdk-0.8.2 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.8.0.1 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.14 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.13 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.11 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.10 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.9 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.8 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.7 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.6 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.5 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.4 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.3 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.2 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.1 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.7.0 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.6.9 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.6.8 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.6.7 lib/videojuicer/criterion/date_range.rb
vj-sdk-0.6.5 lib/videojuicer/criterion/date_range.rb