Method: Content::Pulp::EventHandler#initialize

Defined in:
app/services/content/pulp/event_handler.rb

#initialize(pulp_id, params) ⇒ EventHandler

Returns a new instance of EventHandler.



6
7
8
9
10
11
12
13
# File 'app/services/content/pulp/event_handler.rb', line 6

def initialize(pulp_id, params)
  @pulp_id      = pulp_id
  @params        = params
  @type, @status = parse_type
  return nil unless repo
  log
  update_state
end