Class: RSMP::MessageAcking

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

Overview

Base class for acking messages (MessageAck / MessageNotAck).

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, #inspect, #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

Constructor Details

This class inherits a constructor from RSMP::Message

Instance Attribute Details

#originalObject

Returns the value of attribute original.



353
354
355
# File 'lib/rsmp/message.rb', line 353

def original
  @original
end

Class Method Details

.build_from(message) ⇒ Object



355
356
357
358
359
# File 'lib/rsmp/message.rb', line 355

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

Instance Method Details

#validate_id?Boolean

Returns:

  • (Boolean)


367
368
369
# File 'lib/rsmp/message.rb', line 367

def validate_id?
  true
end