Sha256: 641857980912f91f43eec1e161b81f4480b1058996eedae792dd5887475036d6

Contents?: true

Size: 676 Bytes

Versions: 26

Compression:

Stored size: 676 Bytes

Contents

module Videojuicer
  module Criterion
    class Geolocation
      
      include Videojuicer::Resource
      
      belongs_to :campaign, :class=>Videojuicer::Campaign
      
      property :campaign_id,        Integer
      property :country,            String
      property :region,             String
      property :city,               String
      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
        [:country, :region, :city, :exclude]
      end

    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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