Exception: RealTimeError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- RealTimeError
- Defined in:
- lib/psched.rb
Instance Attribute Summary collapse
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status) ⇒ RealTimeError
constructor
A new instance of RealTimeError.
- #ratio ⇒ Object
Constructor Details
#initialize(status) ⇒ RealTimeError
Returns a new instance of RealTimeError.
174 175 176 |
# File 'lib/psched.rb', line 174 def initialize(status) @status = status end |
Instance Attribute Details
#status ⇒ Object (readonly)
Returns the value of attribute status.
173 174 175 |
# File 'lib/psched.rb', line 173 def status @status end |
Instance Method Details
#ratio ⇒ Object
177 178 179 |
# File 'lib/psched.rb', line 177 def ratio (@status[:tet] / @status[:step]) * 100 end |