Class: Content::Pulp::EventHandler

Inherits:
Object
  • Object
show all
Defined in:
app/services/content/pulp/event_handler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



2
3
4
# File 'app/services/content/pulp/event_handler.rb', line 2

def status
  @status
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'app/services/content/pulp/event_handler.rb', line 2

def type
  @type
end