Class: OpenX::Services::Advertiser
- Defined in:
- lib/openx/services/advertiser.rb
Instance Method Summary collapse
- #campaigns ⇒ Object
-
#initialize(params = {}) ⇒ Advertiser
constructor
A new instance of Advertiser.
Methods inherited from Base
#<=>, establish_connection, has_one, #new_record?, openx_accessor, remote, with_connection
Methods included from Persistance::ClassMethods
Methods included from Persistance::InstanceMethods
Constructor Details
#initialize(params = {}) ⇒ Advertiser
Returns a new instance of Advertiser.
20 21 22 23 24 |
# File 'lib/openx/services/advertiser.rb', line 20 def initialize(params = {}) raise "need agency" unless params[:agency_id] || params[:agency] params[:agency_id] ||= params[:agency].id super(params) end |