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