Class: Jira::Command::Assign

Inherits:
Base
  • Object
show all
Defined in:
lib/jira/commands/assign.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ticket, options = {}) ⇒ Assign

Returns a new instance of Assign.



17
18
19
20
# File 'lib/jira/commands/assign.rb', line 17

def initialize(ticket, options={})
  self.ticket = ticket
  self.options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



15
16
17
# File 'lib/jira/commands/assign.rb', line 15

def options
  @options
end

#ticketObject

Returns the value of attribute ticket.



15
16
17
# File 'lib/jira/commands/assign.rb', line 15

def ticket
  @ticket
end

Instance Method Details

#runObject



22
23
24
25
26
27
# File 'lib/jira/commands/assign.rb', line 22

def run
  api.patch path,
    params:  params,
    success: on_success,
    failure: on_failure
end