Class: RSMP::MessageAck

Inherits:
MessageAcking show all
Defined in:
lib/rsmp/message.rb

Instance Attribute Summary

Attributes inherited from MessageAcking

#original

Attributes inherited from Message

#attributes, #direction, #json, #now, #out, #timestamp

Instance Method Summary collapse

Methods inherited from MessageAcking

build_from, #validate_id

Methods inherited from Message

#attribute, bin_to_chars, build, #generate_json, #m_id, #m_id_short, make_m_id, parse_attributes, shorten_m_id, #type, #valid?, #validate, #validate_id, validate_message_type, #validate_type

Methods included from Inspect

#inspect, #inspector

Constructor Details

#initialize(attributes = {}) ⇒ MessageAck

Returns a new instance of MessageAck.


242
243
244
245
246
# File 'lib/rsmp/message.rb', line 242

def initialize attributes = {}
  super({
    "type" => "MessageAck",
  }.merge attributes)
end

Instance Method Details

#ensure_message_idObject


248
249
250
# File 'lib/rsmp/message.rb', line 248

def ensure_message_id
  # Ack and NotAck does not have a mId
end