lib/karafka/web/ui/models/job.rb in karafka-web-0.2.0 vs lib/karafka/web/ui/models/job.rb in karafka-web-0.2.1
- old
+ new
@@ -4,9 +4,13 @@
module Web
module Ui
module Models
# Single job data representation model
class Job < Lib::HashProxy
+ # @return [Array<String>] tags of this consuming job / consumer
+ def tags
+ @hash[:tags] || []
+ end
end
end
end
end
end