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
17 18 19 |
# File 'lib/dtas/partstats.rb', line 17 def rate @rate end |
#tbeg ⇒ Object
Returns the value of attribute tbeg
17 18 19 |
# File 'lib/dtas/partstats.rb', line 17 def tbeg @tbeg end |
#tlen ⇒ Object
Returns the value of attribute tlen
17 18 19 |
# File 'lib/dtas/partstats.rb', line 17 def tlen @tlen end |
Instance Method Details
#hhmmss ⇒ Object
22 23 24 |
# File 'lib/dtas/partstats.rb', line 22 def hhmmss Time.at(sec).strftime("%H:%M:%S") end |
#sec ⇒ Object
18 19 20 |
# File 'lib/dtas/partstats.rb', line 18 def sec tbeg / rate end |