Class: OpenX::Services::Publisher
- Inherits:
-
Base
- Object
- Base
- OpenX::Services::Publisher
show all
- Defined in:
- lib/openx/services/publisher.rb
Instance Method Summary
collapse
Methods inherited from Base
#<=>, establish_connection, has_one, #new_record?, openx_accessor, remote, with_connection
#create!, #destroy, #find
#destroy, #save!
Constructor Details
#initialize(params = {}) ⇒ Publisher
21
22
23
24
25
|
# File 'lib/openx/services/publisher.rb', line 21
def initialize(params = {})
raise "need agency" unless params[:agency_id] || params[:agency]
params[:agency_id] ||= params[:agency].id
super(params)
end
|
Instance Method Details
#channels ⇒ Object
31
32
33
|
# File 'lib/openx/services/publisher.rb', line 31
def channels
Channel.find(:all, self.id)
end
|
#zones ⇒ Object
27
28
29
|
# File 'lib/openx/services/publisher.rb', line 27
def zones
Zone.find(:all, self.id)
end
|