Class: Subsurface::Sample

Inherits:
Object
  • Object
show all
Defined in:
lib/subsurface/sample.rb

Overview

TODO: Stops, o2sensors, set_point, heartbeat, bearing, in_deco Stores the data in each sample

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time, depth, temp, pressure, ndl, tts, rbt, cns) ⇒ Sample

rubocop:disable Metrics/ParameterLists

Parameters:

  • time (String)
  • depth (Integer)
  • temp (Integer)
  • pressure (Integer)
  • ndl (Integer)
  • tts (Integer)
  • rbt (Integer)
  • cns (Integer)


18
19
20
21
22
23
24
25
26
27
# File 'lib/subsurface/sample.rb', line 18

def initialize(time, depth, temp, pressure, ndl, tts, rbt, cns)
  @time = time
  @depth = depth
  @temp = temp
  @pressure = pressure
  @ndl = ndl
  @tts = tts
  @rbt = rbt
  @cns = cns
end

Instance Attribute Details

#cnsObject (readonly)

Returns the value of attribute cns.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def cns
  @cns
end

#depthObject (readonly)

Returns the value of attribute depth.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def depth
  @depth
end

#ndlObject (readonly)

Returns the value of attribute ndl.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def ndl
  @ndl
end

#pressureObject (readonly)

Returns the value of attribute pressure.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def pressure
  @pressure
end

#rbtObject (readonly)

Returns the value of attribute rbt.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def rbt
  @rbt
end

#tempObject (readonly)

Returns the value of attribute temp.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def temp
  @temp
end

#timeObject (readonly)

Returns the value of attribute time.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def time
  @time
end

#ttsObject (readonly)

Returns the value of attribute tts.



7
8
9
# File 'lib/subsurface/sample.rb', line 7

def tts
  @tts
end