Class: Subsurface::ComputerData

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

Overview

noinspection RubyTooManyInstanceVariablesInspection Stores the computer data for each computer in the dive

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model, device_id, dive_id, max_depth, mean_depth, air_temp, water_temp, surface_pressure, salinity, extra_datas, samples) ⇒ ComputerData

rubocop:disable Metrics/ParameterLists, Metrics/MethodLength

Parameters:

  • model (String)
  • device_id (String)
  • dive_id (String)
  • max_depth (Integer)

    in meters

  • mean_depth (Integer)

    in meters

  • air_temp (Integer)

    in C

  • water_temp (Integer)

    in C

  • surface_pressure (Integer)

    in bar

  • salinity (Integer)

    in g/l

  • extra_datas (ExtraData)
  • samples (Sample)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/subsurface/computer_data.rb', line 24

def initialize(model, device_id, dive_id, max_depth, mean_depth, air_temp,
               water_temp, surface_pressure, salinity, extra_datas, samples)
  @model = model
  @device_id = device_id
  @dive_id = dive_id
  @max_depth = max_depth
  @mean_depth = mean_depth
  @air_temp = air_temp
  @water_temp = water_temp
  @surface_pressure = surface_pressure
  @salinity = salinity
  @extra_datas = extra_datas
  @samples = samples
end

Instance Attribute Details

#air_tempObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def air_temp
  @air_temp
end

#device_idObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def device_id
  @device_id
end

#dive_idObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def dive_id
  @dive_id
end

#extra_datasObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def extra_datas
  @extra_datas
end

#max_depthObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def max_depth
  @max_depth
end

#mean_depthObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def mean_depth
  @mean_depth
end

#modelObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def model
  @model
end

#salinityObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def salinity
  @salinity
end

#samplesObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def samples
  @samples
end

#surface_pressureObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def surface_pressure
  @surface_pressure
end

#water_tempObject (readonly)

TODO: Handle events



8
9
10
# File 'lib/subsurface/computer_data.rb', line 8

def water_temp
  @water_temp
end