Class: Neuron::Client::Pixel

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

Constant Summary collapse

ATTRIBUTES =
[
  :id,
  :ad_ids,     # array of integers
]

Instance Method Summary collapse

Methods included from Base

#apply_attributes!, #destroy, #id=, included, #initialize, #new_record?, #save, #to_create_hash, #to_hash, #to_update_hash, #update_attributes, #valid?

Methods included from Base::ClassAndInstanceMethods

#all, #api=, #create, #create!, #find, #validate=

Instance Method Details

#ad_idsObject



17
18
19
# File 'lib/neuron-client/model/pixel.rb', line 17

def ad_ids
  @ad_ids.nil? ? [] : @ad_ids
end

#attributesObject



13
14
15
# File 'lib/neuron-client/model/pixel.rb', line 13

def attributes
  ATTRIBUTES
end