Sha256: a344604d0f0855183d042177df2f92a384846e734156a39a14579fd86b9bd19d
Contents?: true
Size: 950 Bytes
Versions: 10
Compression:
Stored size: 950 Bytes
Contents
module OpenX module Services class Advertiser < Base openx_accessor :name => :advertiserName, :contact_name => :contactName, :email => :emailAddress, :username => :username, :password => :password, :agency_id => :agencyId, :id => :advertiserId has_one :agency self.create = 'ox.addAdvertiser' self.update = 'ox.modifyAdvertiser' self.delete = 'ox.deleteAdvertiser' self.find_one = 'ox.getAdvertiser' self.find_all = 'ox.getAdvertiserListByAgencyId' def initialize(params = {}) raise "need agency" unless params[:agency_id] || params[:agency] params[:agency_id] ||= params[:agency].id super(params) end def campaigns Campaign.find(:all, self.id) end end end end
Version data entries
10 entries across 10 versions & 5 rubygems