class Gps::Nmea::Gll

Attributes

latitude[RW]
latitude_direction[RW]
longitude[RW]
longitude_direction[RW]

Public Class Methods

new(line) click to toggle source
# File lib/gps/nmea/gll.rb, line 6
def initialize(line)
  @line = line
  fill_parts
  fill_data
end

Private Instance Methods

fill_data() click to toggle source
# File lib/gps/nmea/gll.rb, line 14
def fill_data
  @latitude = @parts[0].to_f
  @latitude_direction = @parts[1]
  @longitude = @parts[2].to_f
  @longitude_direction = @parts[3]
end