Class: Jira::Command::Watch::List
- Defined in:
- lib/jira/commands/watch/list.rb
Instance Attribute Summary collapse
-
#ticket ⇒ Object
Returns the value of attribute ticket.
Instance Method Summary collapse
-
#initialize(ticket) ⇒ List
constructor
A new instance of List.
- #run ⇒ Object
Constructor Details
#initialize(ticket) ⇒ List
Returns a new instance of List.
17 18 19 |
# File 'lib/jira/commands/watch/list.rb', line 17 def initialize(ticket) self.ticket = ticket end |
Instance Attribute Details
#ticket ⇒ Object
Returns the value of attribute ticket.
15 16 17 |
# File 'lib/jira/commands/watch/list.rb', line 15 def ticket @ticket end |
Instance Method Details
#run ⇒ Object
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/jira/commands/watch/list.rb', line 21 def run return if ticket.empty? return if watchers.nil? return if no_watchers? watchers.each do |watcher| self.watcher = watcher display_watcher end end |