Class: DTAS::PartStats::TrimPart
- Inherits:
-
Struct
- Object
- Struct
- DTAS::PartStats::TrimPart
- Defined in:
- lib/dtas/partstats.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#rate ⇒ Object
Returns the value of attribute rate.
-
#tbeg ⇒ Object
Returns the value of attribute tbeg.
-
#tlen ⇒ Object
Returns the value of attribute tlen.
Instance Method Summary collapse
Instance Attribute Details
#rate ⇒ Object
Returns the value of attribute rate
19 20 21 |
# File 'lib/dtas/partstats.rb', line 19 def rate @rate end |
#tbeg ⇒ Object
Returns the value of attribute tbeg
19 20 21 |
# File 'lib/dtas/partstats.rb', line 19 def tbeg @tbeg end |
#tlen ⇒ Object
Returns the value of attribute tlen
19 20 21 |
# File 'lib/dtas/partstats.rb', line 19 def tlen @tlen end |
Instance Method Details
#hhmmss ⇒ Object
24 25 26 |
# File 'lib/dtas/partstats.rb', line 24 def hhmmss Time.at(sec).strftime("%H:%M:%S") end |
#sec ⇒ Object
20 21 22 |
# File 'lib/dtas/partstats.rb', line 20 def sec tbeg / rate end |