Class: Omnizip::Progress::Configuration
- Inherits:
-
Object
- Object
- Omnizip::Progress::Configuration
- Defined in:
- lib/omnizip/progress.rb
Overview
Global configuration class
Instance Attribute Summary collapse
-
#default_eta_strategy ⇒ Object
Returns the value of attribute default_eta_strategy.
-
#default_reporter ⇒ Object
Returns the value of attribute default_reporter.
-
#default_update_interval ⇒ Object
Returns the value of attribute default_update_interval.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
124 125 126 127 128 |
# File 'lib/omnizip/progress.rb', line 124 def initialize @default_reporter = :auto @default_update_interval = 0.5 @default_eta_strategy = :exponential_smoothing end |
Instance Attribute Details
#default_eta_strategy ⇒ Object
Returns the value of attribute default_eta_strategy.
121 122 123 |
# File 'lib/omnizip/progress.rb', line 121 def default_eta_strategy @default_eta_strategy end |
#default_reporter ⇒ Object
Returns the value of attribute default_reporter.
121 122 123 |
# File 'lib/omnizip/progress.rb', line 121 def default_reporter @default_reporter end |
#default_update_interval ⇒ Object
Returns the value of attribute default_update_interval.
121 122 123 |
# File 'lib/omnizip/progress.rb', line 121 def default_update_interval @default_update_interval end |