Class: DSP::CapabilitiesEvent

Inherits:
DSPBase
  • Object
show all
Defined in:
lib/dsp/dsp_protocol.rb

Overview

interface CapabilitiesEvent extends Event {

    body: {
        /** The set of updated capabilities. */
        capabilities: Capabilities;
    };
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from DSP::DSPBase

Instance Attribute Details

#bodyObject

type: {



618
619
620
# File 'lib/dsp/dsp_protocol.rb', line 618

def body
  @body
end

#eventObject

/** The set of updated capabilities. */

    capabilities: Capabilities;
}


622
623
624
# File 'lib/dsp/dsp_protocol.rb', line 622

def event
  @event
end

#seqObject

type: {



618
619
620
# File 'lib/dsp/dsp_protocol.rb', line 618

def seq
  @seq
end

#typeObject

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