Class: ProgressBar::Components::Percentage

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-progressbar/components/percentage.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Percentage

Returns a new instance of Percentage.



6
7
8
# File 'lib/ruby-progressbar/components/percentage.rb', line 6

def initialize(options = {})
  self.progress = options[:progress]
end

Instance Attribute Details

#progressObject

Returns the value of attribute progress.



4
5
6
# File 'lib/ruby-progressbar/components/percentage.rb', line 4

def progress
  @progress
end