Class: Gps::Nmea::Gsv

Inherits:
Sentence show all
Defined in:
lib/gps/nmea/gsv.rb

Instance Attribute Summary collapse

Attributes inherited from Sentence

#line

Instance Method Summary collapse

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

#azimuthObject

Returns the value of attribute azimuth.



4
5
6
# File 'lib/gps/nmea/gsv.rb', line 4

def azimuth
  @azimuth
end

#elevationObject

Returns the value of attribute elevation.



4
5
6
# File 'lib/gps/nmea/gsv.rb', line 4

def elevation
  @elevation
end

#message_numObject

Returns the value of attribute message_num.



4
5
6
# File 'lib/gps/nmea/gsv.rb', line 4

def message_num
  @message_num
end

#num_messagesObject

Returns the value of attribute num_messages.



4
5
6
# File 'lib/gps/nmea/gsv.rb', line 4

def num_messages
  @num_messages
end

#snrObject

Returns the value of attribute snr.



4
5
6
# File 'lib/gps/nmea/gsv.rb', line 4

def snr
  @snr
end

#sv_prnObject

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_svsObject

Returns the value of attribute total_svs.



4
5
6
# File 'lib/gps/nmea/gsv.rb', line 4

def total_svs
  @total_svs
end