Method: NMEAPlus::Message::AIS::AISMessage#message_type

Defined in:
lib/nmea_plus/message/ais/base_ais.rb,
lib/nmea_plus/message/ais/base_ais.rb

#message_typeString

The generic type of the NMEA message. NMEA message types are 5 characters (or so): the first 2 are the talker ID, and the remaining characters are the generic message type.

Returns:

  • (String)

    The two-character “talker ID” of the message


27
28
29
# File 'lib/nmea_plus/message/ais/base_ais.rb', line 27

def message_type
  data_type[2..-1]
end