Sha256: 93783f0e798b9c098f112f0a2302a0355344dfd9395a7a1b579558d83763c2d7

Contents?: true

Size: 655 Bytes

Versions: 15

Compression:

Stored size: 655 Bytes

Contents

module Neuron
  module Schema
    class Pixel
      include Common

      SCHEMA = self.new
      
      def index
        @@index ||=
        set_of(object_type("pixel",
          :id => id
        ))
      end

      def create
        @@create ||=
        object_type_or_null("pixel",
          :ad_ids => set_of(id, :required => false)
        )
      end

      def show
        @@show ||=
        object_type("pixel",
          :id => id,
          :ad_ids => set_of(id)
        )
      end

      def update
        @@update ||=
        object_type("pixel",
          :id => id,
          :ad_ids => set_of(id)
        )
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
neuron-client-0.6.0 lib/neuron-client/schema/pixel.rb
neuron-client-0.5.3 lib/neuron-client/schema/pixel.rb
neuron-client-0.5.2 lib/neuron-client/schema/pixel.rb
neuron-client-0.5.1 lib/neuron-client/schema/pixel.rb
neuron-client-0.5.0 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.8 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.7 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.6 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.5 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.4 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.3 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.2 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.1 lib/neuron-client/schema/pixel.rb
neuron-client-0.4.0 lib/neuron-client/schema/pixel.rb
neuron-client-0.3.0 lib/neuron-client/schema/pixel.rb