Class: Neuron::Schema::Pixel

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/neuron-client/schema/pixel.rb

Constant Summary collapse

SCHEMA =
self.new

Instance Method Summary collapse

Methods included from Common

#choice_of, #datetime, #errors, #id, included, #integer, #merged, #missing_or_null, #missing_or_null_or_empty_hash, #nonnull_string, #null, #nullable_string, #object_type, #object_type_or_null, #one_of, #parameters, #priority, #set_of, #slug, #timezone, #url, #uuid, #weight, #yes_no

Instance Method Details

#createObject



15
16
17
18
19
20
# File 'lib/neuron-client/schema/pixel.rb', line 15

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

#indexObject



8
9
10
11
12
13
# File 'lib/neuron-client/schema/pixel.rb', line 8

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

#showObject



22
23
24
25
26
27
28
# File 'lib/neuron-client/schema/pixel.rb', line 22

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

#updateObject



30
31
32
33
34
35
36
# File 'lib/neuron-client/schema/pixel.rb', line 30

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