Class: DSP::DisconnectRequest
- Defined in:
- lib/dsp/dsp_protocol.rb
Overview
interface DisconnectRequest extends Request {
arguments?: DisconnectArguments;
}
Instance Attribute Summary collapse
-
#arguments ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string.
-
#command ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string.
-
#seq ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string.
-
#type ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string.
Instance Method Summary collapse
- #from_h!(value) ⇒ Object
-
#initialize(initial_hash = nil) ⇒ DisconnectRequest
constructor
A new instance of DisconnectRequest.
Methods inherited from DSPBase
Constructor Details
#initialize(initial_hash = nil) ⇒ DisconnectRequest
Returns a new instance of DisconnectRequest.
1172 1173 1174 1175 |
# File 'lib/dsp/dsp_protocol.rb', line 1172 def initialize(initial_hash = nil) super @optional_method_names = i[arguments] end |
Instance Attribute Details
#arguments ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string
1170 1171 1172 |
# File 'lib/dsp/dsp_protocol.rb', line 1170 def arguments @arguments end |
#command ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string
1170 1171 1172 |
# File 'lib/dsp/dsp_protocol.rb', line 1170 def command @command end |
#seq ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string
1170 1171 1172 |
# File 'lib/dsp/dsp_protocol.rb', line 1170 def seq @seq end |
#type ⇒ Object
type: DisconnectArguments # type: string # type: number # type: string
1170 1171 1172 |
# File 'lib/dsp/dsp_protocol.rb', line 1170 def type @type end |
Instance Method Details
#from_h!(value) ⇒ Object
1177 1178 1179 1180 1181 1182 1183 1184 |
# File 'lib/dsp/dsp_protocol.rb', line 1177 def from_h!(value) value = {} if value.nil? self.arguments = DisconnectArguments.new(value['arguments']) unless value['arguments'].nil? self.command = value['command'] self.seq = value['seq'] self.type = value['type'] self end |