Class: DSP::CapabilitiesEvent
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface CapabilitiesEvent extends Event {
body: {
/** The set of updated capabilities. */
capabilities: Capabilities;
};
}
Instance Attribute Summary collapse
-
#body ⇒ Object
type: {.
-
#event ⇒ Object
/** The set of updated capabilities.
-
#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: {
618 619 620 |
# File 'lib/dsp/dsp_protocol.rb', line 618 def body @body end |
#event ⇒ Object
/** The set of updated capabilities. */
capabilities: Capabilities;
}
622 623 624 |
# File 'lib/dsp/dsp_protocol.rb', line 622 def event @event end |
#seq ⇒ Object
type: {
618 619 620 |
# File 'lib/dsp/dsp_protocol.rb', line 618 def seq @seq end |
#type ⇒ Object
type: {
618 619 620 |
# File 'lib/dsp/dsp_protocol.rb', line 618 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
624 625 626 627 628 629 630 631 |
# File 'lib/dsp/dsp_protocol.rb', line 624 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 |