Class: DSP::ModuleEvent
Overview
interface ModuleEvent extends Event {
body: {
/** The reason for the event. */
reason: 'new' | 'changed' | 'removed';
/** The new, changed, or removed module. In case of 'removed' only the module id is used. */
module: Module;
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#event ⇒ Object
/** The reason for the event.
-
#seq ⇒ Object
type: {.
-
#type ⇒ Object
type: {.
Instance Method Summary collapse
Methods inherited from DSPBase
Constructor Details
This class inherits a constructor from DSP::DSPBase
Instance Attribute Details
#body ⇒ Object
type: {
519 520 521 |
# File 'lib/dsp/dsp_protocol.rb', line 519 def body @body end |
#event ⇒ Object
/** The reason for the event. */
reason: 'new' | 'changed' | 'removed';
/** The new, changed, or removed module. In case of 'removed' only the module id is used. */
module: Module;
}
525 526 527 |
# File 'lib/dsp/dsp_protocol.rb', line 525 def event @event end |
#seq ⇒ Object
type: {
519 520 521 |
# File 'lib/dsp/dsp_protocol.rb', line 519 def seq @seq end |
#type ⇒ Object
type: {
519 520 521 |
# File 'lib/dsp/dsp_protocol.rb', line 519 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
527 528 529 530 531 532 533 534 |
# File 'lib/dsp/dsp_protocol.rb', line 527 def from_h!(value) value = {} if value.nil? self.body = value['body'] # Unknown type self.event = value['event'] self.seq = value['seq'] self.type = value['type'] self end |