Class: EmailEvents::Adapters::Ses::SnsEndpointTopicListMatcher

Inherits:
Array
  • Object
show all
Defined in:
lib/email_events/adapters/ses/initializer.rb

Instance Method Summary collapse

Instance Method Details

#include?(arn) ⇒ Boolean

match any topic ending in the topic name (as opposed to the long ARN topic ID)

Returns:

  • (Boolean)


27
28
29
# File 'lib/email_events/adapters/ses/initializer.rb', line 27

def include?(arn)
  self.any? {|topic| arn.end_with? topic}
end