Class: Content::PulpEventHandler
- Inherits:
-
Object
- Object
- Content::PulpEventHandler
- Defined in:
- app/services/content/pulp_event_handler.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(pulp_id, params) ⇒ PulpEventHandler
constructor
A new instance of PulpEventHandler.
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
#status ⇒ Object (readonly)
Returns the value of attribute status.
2 3 4 |
# File 'app/services/content/pulp_event_handler.rb', line 2 def status @status end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
2 3 4 |
# File 'app/services/content/pulp_event_handler.rb', line 2 def type @type end |