Class: RSMP::MessageAcking

Inherits:
Message
  • Object
show all
Defined in:
lib/rsmp/message.rb

Direct Known Subclasses

MessageAck, MessageNotAck

Instance Attribute Summary collapse

Attributes inherited from Message

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Message

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

Methods included from Inspect

#inspect, #inspector

Constructor Details

This class inherits a constructor from RSMP::Message

Instance Attribute Details

#originalObject

Returns the value of attribute original.



319
320
321
# File 'lib/rsmp/message.rb', line 319

def original
  @original
end

Class Method Details

.build_from(message) ⇒ Object



321
322
323
324
325
# File 'lib/rsmp/message.rb', line 321

def self.build_from message
  return new({
    "oMId" => message.attributes["mId"]
  })
end

Instance Method Details

#validate_idObject



332
333
334
# File 'lib/rsmp/message.rb', line 332

def validate_id
  true
end