Class: DSP::AttachRequestArguments

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

Overview

interface AttachRequestArguments {

    /** Optional data from the previous, restarted session.
        The data is sent as the 'restart' attribute of the 'terminated' event.
        The client should leave the data intact.
    */
    __restart?: any;
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from DSPBase

#to_h, #to_json

Constructor Details

#initialize(initial_hash = nil) ⇒ AttachRequestArguments

Returns a new instance of AttachRequestArguments.



1077
1078
1079
1080
# File 'lib/dsp/dsp_protocol.rb', line 1077

def initialize(initial_hash = nil)
  super
  @optional_method_names = %i[__restart]
end

Instance Attribute Details

#__restartObject

type: any



1075
1076
1077
# File 'lib/dsp/dsp_protocol.rb', line 1075

def __restart
  @__restart
end

Instance Method Details

#from_h!(value) ⇒ Object



1082
1083
1084
1085
1086
# File 'lib/dsp/dsp_protocol.rb', line 1082

def from_h!(value)
  value = {} if value.nil?
  self.__restart = value['__restart']
  self
end