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


223
224
225
# File 'lib/rsmp/message.rb', line 223

def original
  @original
end

Class Method Details

.build_from(message) ⇒ Object


225
226
227
228
229
# File 'lib/rsmp/message.rb', line 225

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

Instance Method Details

#validate_idObject


236
237
238
# File 'lib/rsmp/message.rb', line 236

def validate_id
  true
end