Class: Nauvisian::Progress::Bar

Inherits:
Object
  • Object
show all
Defined in:
lib/nauvisian/progress/bar.rb

Instance Method Summary collapse

Constructor Details

#initialize(release) ⇒ Bar

Returns a new instance of Bar.



11
12
13
# File 'lib/nauvisian/progress/bar.rb', line 11

def initialize(release)
  @progress_bar = ProgressBar.create(title: "⚙ %s" % release.file_name, format: FORMAT)
end

Instance Method Details

#progress=(progress) ⇒ Object



15
16
17
# File 'lib/nauvisian/progress/bar.rb', line 15

def progress=(progress)
  @progress_bar.progress = progress
end

#total=(total) ⇒ Object



19
20
21
# File 'lib/nauvisian/progress/bar.rb', line 19

def total=(total)
  @progress_bar.total = total
end