Class: Jura::Component::Issue::Estimate

Inherits:
Object
  • Object
show all
Defined in:
lib/jura/component/issue/estimate.rb

Class Method Summary collapse

Class Method Details

.render(issue) ⇒ Object



7
8
9
10
11
12
13
14
15
16
# File 'lib/jura/component/issue/estimate.rb', line 7

def self.render(issue)
  prompt = TTY::Prompt.new
  point_value = prompt.ask("How many points do you want to estimate?", default: 1)

  Spinner.render("Estimated this issue - #{point_value} points!", clear: false) do
    Api::Issue.estimate(issue['id'], point_value)
  end

  puts ""
end