Class: OpenX::Services::Agency
- Defined in:
- lib/openx/services/agency.rb
Instance Method Summary collapse
Methods inherited from Base
#<=>, establish_connection, has_one, #initialize, #new_record?, openx_accessor, remote, with_connection
Methods included from Persistance::ClassMethods
Methods included from Persistance::InstanceMethods
Constructor Details
This class inherits a constructor from OpenX::Services::Base
Instance Method Details
#advertisers ⇒ Object
25 26 27 |
# File 'lib/openx/services/agency.rb', line 25 def advertisers Advertiser.find(:all, self.id) end |
#create_advertiser!(params = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/openx/services/agency.rb', line 19 def create_advertiser!(params = {}) Advertiser.create!(params.merge({ :agency => self, })) end |