Class: AdRoll::Api::Pixel

Inherits:
Service
  • Object
show all
Defined in:
lib/adroll/pixel.rb

Class Method Summary collapse

Class Method Details

.get(pixel:) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/adroll/pixel.rb', line 5

def get(pixel:)
  params = {
    pixel: pixel
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end

.get_rules(pixel:) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/adroll/pixel.rb', line 13

def get_rules(pixel:)
  params = {
    pixel: pixel
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end

.get_segments(pixel:) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/adroll/pixel.rb', line 21

def get_segments(pixel:)
  params = {
    pixel: pixel
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end

.reorder_rules(pixel:, rules:) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/adroll/pixel.rb', line 29

def reorder_rules(pixel:, rules:)
  params = {
    pixel: pixel,
    rules: rules
  }.reject { |_, value| value.nil? }

  call_api(:get, __method__, params)
end