Class: Subsurface::ComputerData
- Inherits:
-
Object
- Object
- Subsurface::ComputerData
- Defined in:
- lib/subsurface/computer_data.rb
Overview
noinspection RubyTooManyInstanceVariablesInspection Stores the computer data for each computer in the dive
Instance Attribute Summary collapse
-
#air_temp ⇒ Object
readonly
TODO: Handle events.
-
#device_id ⇒ Object
readonly
TODO: Handle events.
-
#dive_id ⇒ Object
readonly
TODO: Handle events.
-
#extra_datas ⇒ Object
readonly
TODO: Handle events.
-
#max_depth ⇒ Object
readonly
TODO: Handle events.
-
#mean_depth ⇒ Object
readonly
TODO: Handle events.
-
#model ⇒ Object
readonly
TODO: Handle events.
-
#salinity ⇒ Object
readonly
TODO: Handle events.
-
#samples ⇒ Object
readonly
TODO: Handle events.
-
#surface_pressure ⇒ Object
readonly
TODO: Handle events.
-
#water_temp ⇒ Object
readonly
TODO: Handle events.
Instance Method Summary collapse
-
#initialize(model, device_id, dive_id, max_depth, mean_depth, air_temp, water_temp, surface_pressure, salinity, extra_datas, samples) ⇒ ComputerData
constructor
rubocop:disable Metrics/ParameterLists, Metrics/MethodLength.
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
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_temp ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def air_temp @air_temp end |
#device_id ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def device_id @device_id end |
#dive_id ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def dive_id @dive_id end |
#extra_datas ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def extra_datas @extra_datas end |
#max_depth ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def max_depth @max_depth end |
#mean_depth ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def mean_depth @mean_depth end |
#model ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def model @model end |
#salinity ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def salinity @salinity end |
#samples ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def samples @samples end |
#surface_pressure ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def surface_pressure @surface_pressure end |
#water_temp ⇒ Object (readonly)
TODO: Handle events
8 9 10 |
# File 'lib/subsurface/computer_data.rb', line 8 def water_temp @water_temp end |