Class: Jira::Vote

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

Instance Method Summary collapse

Instance Method Details

#add(ticket) ⇒ Object



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

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

#delete(ticket) ⇒ Object



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

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

#list(ticket) ⇒ Object



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

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