Sha256: 9240203299eb13501bf28c3d79777bc8e800548a4fe9bc1472b214fe07fe0036
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
module Travis module Notifications class Worker class Queue attr_reader :name, :slug, :target, :language def initialize(*args) @name, @slug, @target, @language = *args end def matches?(slug, target, language) matches_slug?(slug) || matches_language?(language) # || matches_target?(target) end def queue name end protected def matches_slug?(slug) !!self.slug && (self.slug == slug) end def matches_target?(target) !!self.target && (self.target == target) end def matches_language?(language) !!self.language && (self.language == language) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
travis-core-0.0.1 | lib/travis/notifications/worker/queue.rb |