Class: RSMP::Version
Instance Attribute Summary
Attributes inherited from Message
#attributes, #direction, #json, #now, #out, #timestamp
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Version
constructor
A new instance of Version.
- #versions ⇒ Object
Methods inherited from Message
#attribute, bin_to_chars, build, build_alarm, create_message_instance, #ensure_message_id, #generate_json, #m_id, #m_id_short, make_m_id, message_types, parse_attributes, shorten_m_id, #type, #valid?, #validate, validate_attributes_structure, #validate_id?, validate_message_type, validate_mtype_field, #validate_type?, validate_type_field
Methods included from Inspect
Constructor Details
#initialize(attributes = {}) ⇒ Version
Returns a new instance of Version.
205 206 207 208 209 |
# File 'lib/rsmp/message.rb', line 205 def initialize(attributes = {}) super({ 'type' => 'Version' }.merge attributes) end |
Instance Method Details
#versions ⇒ Object
211 212 213 |
# File 'lib/rsmp/message.rb', line 211 def versions attribute('RSMP').map { |item| item['vers'] } end |