Class: Gps::Nmea::Gsv
Instance Attribute Summary collapse
-
#azimuth ⇒ Object
Returns the value of attribute azimuth.
-
#elevation ⇒ Object
Returns the value of attribute elevation.
-
#message_num ⇒ Object
Returns the value of attribute message_num.
-
#num_messages ⇒ Object
Returns the value of attribute num_messages.
-
#snr ⇒ Object
Returns the value of attribute snr.
-
#sv_prn ⇒ Object
Returns the value of attribute sv_prn.
-
#total_svs ⇒ Object
Returns the value of attribute total_svs.
Attributes inherited from Sentence
Instance Method Summary collapse
-
#initialize(line) ⇒ Gsv
constructor
A new instance of Gsv.
Methods inherited from Sentence
#checksum_valid?, date_part_to_str, #generate_checksum, #get_checksum, #has_coordinates?, #has_datetime?, #lat_dec, #lat_long_dec, #long_dec, parse, time_part_to_str, #to_h, #to_json
Constructor Details
#initialize(line) ⇒ Gsv
Returns a new instance of Gsv.
7 8 9 10 11 |
# File 'lib/gps/nmea/gsv.rb', line 7 def initialize(line) @line = line fill_parts fill_data end |
Instance Attribute Details
#azimuth ⇒ Object
Returns the value of attribute azimuth.
4 5 6 |
# File 'lib/gps/nmea/gsv.rb', line 4 def azimuth @azimuth end |
#elevation ⇒ Object
Returns the value of attribute elevation.
4 5 6 |
# File 'lib/gps/nmea/gsv.rb', line 4 def elevation @elevation end |
#message_num ⇒ Object
Returns the value of attribute message_num.
4 5 6 |
# File 'lib/gps/nmea/gsv.rb', line 4 def end |
#num_messages ⇒ Object
Returns the value of attribute num_messages.
4 5 6 |
# File 'lib/gps/nmea/gsv.rb', line 4 def end |
#snr ⇒ Object
Returns the value of attribute snr.
4 5 6 |
# File 'lib/gps/nmea/gsv.rb', line 4 def snr @snr end |
#sv_prn ⇒ Object
Returns the value of attribute sv_prn.
4 5 6 |
# File 'lib/gps/nmea/gsv.rb', line 4 def sv_prn @sv_prn end |
#total_svs ⇒ Object
Returns the value of attribute total_svs.
4 5 6 |
# File 'lib/gps/nmea/gsv.rb', line 4 def total_svs @total_svs end |