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



17
18
19
# File 'lib/dtas/partstats.rb', line 17

def rate
  @rate
end

#tbegObject

Returns the value of attribute tbeg

Returns:

  • (Object)

    the current value of tbeg



17
18
19
# File 'lib/dtas/partstats.rb', line 17

def tbeg
  @tbeg
end

#tlenObject

Returns the value of attribute tlen

Returns:

  • (Object)

    the current value of tlen



17
18
19
# File 'lib/dtas/partstats.rb', line 17

def tlen
  @tlen
end

Instance Method Details

#hhmmssObject



22
23
24
# File 'lib/dtas/partstats.rb', line 22

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

#secObject



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

def sec
  tbeg / rate
end