Class: PipelineService::Events::Subscription

Inherits:
Object
  • Object
show all
Defined in:
app/services/pipeline_service/events/subscription.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#eventObject (readonly)

Returns the value of attribute event.



4
5
6
# File 'app/services/pipeline_service/events/subscription.rb', line 4

def event
  @event
end

#responderObject (readonly)

Returns the value of attribute responder.



4
5
6
# File 'app/services/pipeline_service/events/subscription.rb', line 4

def responder
  @responder
end