Sha256: e895df0cb5190112b856cc8a4e8d4e84d86ae73579e11f0f660d485b3198ba21

Contents?: true

Size: 569 Bytes

Versions: 19

Compression:

Stored size: 569 Bytes

Contents

module Videojuicer
  module Criterion
    class Request
      
      include Videojuicer::Resource
      
      belongs_to :campaign, :class=>Videojuicer::Campaign
      
      property :campaign_id, Integer
      property :referrer,    String, :nullable => false
      property :exclude,     Boolean
      
      def self.singular_name
        "criterion"
      end
      
      def self.base_path(options={})
        "/criteria/#{self.to_s.split("::").last.snake_case}"
      end
      
      def matcher_keys
        [:referrer, :exclude]
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

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