Class: Adcloud::CampaignPerformanceData

Inherits:
Entity
  • Object
show all
Includes:
Virtus
Defined in:
lib/adcloud/campaign_performance_data.rb

Constant Summary

Constants inherited from Entity

Entity::MAX_PER_PAGE

Instance Attribute Summary

Attributes inherited from Entity

#errors

Class Method Summary collapse

Methods inherited from Entity

all, all!, api_name, #connection, #create, create, #destroy, find, find_by_name, #meta, #update

Class Method Details

.find_by_campaign_ids(campaign_ids) ⇒ Object



8
9
10
11
# File 'lib/adcloud/campaign_performance_data.rb', line 8

def self.find_by_campaign_ids(campaign_ids)
  result = connection.get(self.api_endpoint, { :campaign_ids => campaign_ids.join(',') })
  self.new(result)
end