Class: Jeti::Log::Data::RxData
- Inherits:
-
Object
- Object
- Jeti::Log::Data::RxData
- Defined in:
- lib/jeti/log/data/rx_data.rb
Instance Attribute Summary collapse
-
#antenna1 ⇒ Object
readonly
Returns the value of attribute antenna1.
-
#antenna2 ⇒ Object
readonly
Returns the value of attribute antenna2.
-
#quality ⇒ Object
readonly
Returns the value of attribute quality.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
-
#voltage ⇒ Object
readonly
Returns the value of attribute voltage.
Instance Method Summary collapse
-
#initialize(time, fields) ⇒ RxData
constructor
A new instance of RxData.
Constructor Details
#initialize(time, fields) ⇒ RxData
Returns a new instance of RxData.
11 12 13 14 15 |
# File 'lib/jeti/log/data/rx_data.rb', line 11 def initialize(time, fields) raise ArgumentError unless fields.length == 4 @time = time @voltage, @antenna1, @antenna2, @quality = fields end |
Instance Attribute Details
#antenna1 ⇒ Object (readonly)
Returns the value of attribute antenna1.
7 8 9 |
# File 'lib/jeti/log/data/rx_data.rb', line 7 def antenna1 @antenna1 end |
#antenna2 ⇒ Object (readonly)
Returns the value of attribute antenna2.
8 9 10 |
# File 'lib/jeti/log/data/rx_data.rb', line 8 def antenna2 @antenna2 end |
#quality ⇒ Object (readonly)
Returns the value of attribute quality.
9 10 11 |
# File 'lib/jeti/log/data/rx_data.rb', line 9 def quality @quality end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
5 6 7 |
# File 'lib/jeti/log/data/rx_data.rb', line 5 def time @time end |
#voltage ⇒ Object (readonly)
Returns the value of attribute voltage.
6 7 8 |
# File 'lib/jeti/log/data/rx_data.rb', line 6 def voltage @voltage end |