Class: Jira::Watch

Inherits:
Thor
  • Object
show all
Defined in:
lib/jira/commands/watch/add.rb,
lib/jira/commands/watch/list.rb,
lib/jira/commands/watch/delete.rb

Instance Method Summary collapse

Instance Method Details

#add(ticket) ⇒ Object



5
6
7
# File 'lib/jira/commands/watch/add.rb', line 5

def add(ticket)
  Command::Watch::Add.new(ticket).run
end

#delete(ticket) ⇒ Object



5
6
7
# File 'lib/jira/commands/watch/delete.rb', line 5

def delete(ticket)
  Command::Watch::Delete.new(ticket).run
end

#list(ticket) ⇒ Object



5
6
7
# File 'lib/jira/commands/watch/list.rb', line 5

def list(ticket)
  Command::Watch::List.new(ticket).run
end