Class: LogStash::Inputs::GooglePubSub::SubscriberListener

Inherits:
Listener
  • Object
show all
Defined in:
lib/logstash/inputs/google_pubsub.rb

Instance Method Summary collapse

Constructor Details

#initialize(&blk) ⇒ SubscriberListener

Returns a new instance of SubscriberListener.



174
175
176
# File 'lib/logstash/inputs/google_pubsub.rb', line 174

def initialize(&blk)
  @block = blk
end

Instance Method Details

#failed(from, failure) ⇒ Object



178
179
180
# File 'lib/logstash/inputs/google_pubsub.rb', line 178

def failed(from, failure)
  @block.call(from, failure)
end