Class: OpenX::Services::Publisher
- Defined in:
- lib/openx/services/publisher.rb
Instance Method Summary collapse
- #channels ⇒ Object
-
#initialize(params = {}) ⇒ Publisher
constructor
A new instance of Publisher.
- #zones ⇒ Object
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 = {}) ⇒ Publisher
Returns a new instance of 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 |