Class: DTAS::PartStats::TrimPart

Inherits:
Struct
  • Object
show all
Defined in:
lib/dtas/partstats.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rateObject

Returns the value of attribute rate

Returns:

  • (Object)

    the current value of rate



19
20
21
# File 'lib/dtas/partstats.rb', line 19

def rate
  @rate
end

#tbegObject

Returns the value of attribute tbeg

Returns:

  • (Object)

    the current value of tbeg



19
20
21
# File 'lib/dtas/partstats.rb', line 19

def tbeg
  @tbeg
end

#tlenObject

Returns the value of attribute tlen

Returns:

  • (Object)

    the current value of tlen



19
20
21
# File 'lib/dtas/partstats.rb', line 19

def tlen
  @tlen
end

Instance Method Details

#hhmmssObject



24
25
26
# File 'lib/dtas/partstats.rb', line 24

def hhmmss
  Time.at(sec).strftime("%H:%M:%S")
end

#secObject



20
21
22
# File 'lib/dtas/partstats.rb', line 20

def sec
  tbeg / rate
end