Class: Jira::Command::Assign
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#ticket ⇒ Object
Returns the value of attribute ticket.
Instance Method Summary collapse
-
#initialize(ticket, options = {}) ⇒ Assign
constructor
A new instance of Assign.
- #run ⇒ Object
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, ={}) self.ticket = ticket self. = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
15 16 17 |
# File 'lib/jira/commands/assign.rb', line 15 def @options end |
#ticket ⇒ Object
Returns the value of attribute ticket.
15 16 17 |
# File 'lib/jira/commands/assign.rb', line 15 def ticket @ticket end |
Instance Method Details
#run ⇒ Object
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 |