Class: PipelineService::Events::Subscription
- Inherits:
-
Object
- Object
- PipelineService::Events::Subscription
- Defined in:
- app/services/pipeline_service/events/subscription.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
-
#responder ⇒ Object
readonly
Returns the value of attribute responder.
Instance Method Summary collapse
-
#initialize(event:, responder: nil) ⇒ Subscription
constructor
A new instance of Subscription.
Constructor Details
#initialize(event:, responder: nil) ⇒ Subscription
Returns a new instance of Subscription.
5 6 7 8 |
# File 'app/services/pipeline_service/events/subscription.rb', line 5 def initialize(event:, responder: nil) @responder = responder @event = event end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
4 5 6 |
# File 'app/services/pipeline_service/events/subscription.rb', line 4 def event @event end |
#responder ⇒ Object (readonly)
Returns the value of attribute responder.
4 5 6 |
# File 'app/services/pipeline_service/events/subscription.rb', line 4 def responder @responder end |