class NMEAPlus::Message::AIS::VDMPayload::VDMMsg8
Public Instance Methods
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb, line 33 def _dynamic_payload_container class_identifier = "NMEAPlus::Message::AIS::VDMPayload::VDMMsg8d#{designated_area_code}f#{functional_id}" ret = _object_by_name(class_identifier) return ret unless ret.nil? # 316 / 366 if designated_area_code == 316 class_identifier = "NMEAPlus::Message::AIS::VDMPayload::VDMMsg8d366f#{functional_id}" ret = _object_by_name(class_identifier) return ret unless ret.nil? end _object_by_name("NMEAPlus::Message::AIS::VDMPayload::VDMMsg8Undefined") # generic end
Dynamically calculate what message subtype to use which depends on the designated_area_code and functional_id @private
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8.rb, line 23 def dp ret = _dynamic_payload_container ret.payload_bitstring = payload_bitstring ret.fill_bits = fill_bits ret end
Dynamic Payload
containing fields for the appropriate message 8 subtype. This is a factory method for the container class @!parse attr_reader :dp @return [VDMMsg8DynamicPayload]