Class: DTAS::PartStats::TrimPart

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

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



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

def rate
  @rate
end

#tbegObject

Returns the value of attribute tbeg

Returns:

  • (Object)

    the current value of tbeg



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

def tbeg
  @tbeg
end

#tlenObject

Returns the value of attribute tlen

Returns:

  • (Object)

    the current value of tlen



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

def tlen
  @tlen
end

Instance Method Details

#hhmmssObject



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

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

#secObject



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

def sec
  tbeg / rate
end