Class: Content::PulpEventHandler

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) ⇒ PulpEventHandler

Returns a new instance of PulpEventHandler.



6
7
8
9
10
11
# File 'app/services/content/pulp_event_handler.rb', line 6

def initialize(pulp_id, params)
  @repo          = Content::Repository.where(:pulp_id => pulp_id).first
  @params        = params
  @type, @status = parse_type
  log
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