Class: RSMP::AlarmResumed

Inherits:
Alarm show all
Defined in:
lib/rsmp/message.rb

Instance Attribute Summary

Attributes inherited from Message

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

Instance Method Summary collapse

Methods inherited from Alarm

#differ?

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

#inspect, #inspector

Constructor Details

#initialize(attributes = {}) ⇒ AlarmResumed

Returns a new instance of AlarmResumed.



315
316
317
318
319
320
# File 'lib/rsmp/message.rb', line 315

def initialize(attributes = {})
  super({
    'aSp' => 'Suspend',
    'sS' => 'notSuspended'
  }.merge attributes)
end