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, create_message_instance, #ensure_message_id, #generate_json, #initialize, #m_id, #m_id_short, make_m_id, message_types, parse_attributes, shorten_m_id, #type, #valid?, #validate, validate_attributes_structure, validate_message_type, validate_mtype_field, #validate_type?, validate_type_field

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.



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

def original
  @original
end

Class Method Details

.build_from(message) ⇒ Object



334
335
336
337
338
# File 'lib/rsmp/message.rb', line 334

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

Instance Method Details

#validate_id?Boolean

Returns:

  • (Boolean)


346
347
348
# File 'lib/rsmp/message.rb', line 346

def validate_id?
  true
end