Class: Gps::Nmea::Gga

Inherits:
Sentence show all
Defined in:
lib/gps/nmea/gga.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) ⇒ Gga

Returns a new instance of Gga.



10
11
12
13
14
# File 'lib/gps/nmea/gga.rb', line 10

def initialize(line)
  @line = line
  fill_parts
  fill_data
end

Instance Attribute Details

#age_of_diffObject

Returns the value of attribute age_of_diff.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def age_of_diff
  @age_of_diff
end

#altitudeObject

Returns the value of attribute altitude.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def altitude
  @altitude
end

#altitude_unitObject

Returns the value of attribute altitude_unit.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def altitude_unit
  @altitude_unit
end

#fix_qualityObject

Returns the value of attribute fix_quality.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def fix_quality
  @fix_quality
end

#hdopObject

Returns the value of attribute hdop.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def hdop
  @hdop
end

#latitudeObject

Returns the value of attribute latitude.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def latitude
  @latitude
end

#latitude_directionObject

Returns the value of attribute latitude_direction.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def latitude_direction
  @latitude_direction
end

#longitudeObject

Returns the value of attribute longitude.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def longitude
  @longitude
end

#longitude_directionObject

Returns the value of attribute longitude_direction.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def longitude_direction
  @longitude_direction
end

#num_satellitesObject

Returns the value of attribute num_satellites.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def num_satellites
  @num_satellites
end

#timeObject

Returns the value of attribute time.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def time
  @time
end

#time_strObject

Returns the value of attribute time_str.



6
7
8
# File 'lib/gps/nmea/gga.rb', line 6

def time_str
  @time_str
end