Class: DSP::AttachRequestArguments
- 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
-
#__restart ⇒ Object
type: any.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ AttachRequestArguments
constructor
A new instance of AttachRequestArguments.
Methods inherited from DSPBase
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
#__restart ⇒ Object
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 |