Class: DSP::CompletionsRequest

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

Overview

interface CompletionsRequest extends Request {

    arguments: CompletionsArguments;
}

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

#argumentsObject

type: CompletionsArguments # type: string # type: number # type: string



3269
3270
3271
# File 'lib/dsp/dsp_protocol.rb', line 3269

def arguments
  @arguments
end

#commandObject

type: CompletionsArguments # type: string # type: number # type: string



3269
3270
3271
# File 'lib/dsp/dsp_protocol.rb', line 3269

def command
  @command
end

#seqObject

type: CompletionsArguments # type: string # type: number # type: string



3269
3270
3271
# File 'lib/dsp/dsp_protocol.rb', line 3269

def seq
  @seq
end

#typeObject

type: CompletionsArguments # type: string # type: number # type: string



3269
3270
3271
# File 'lib/dsp/dsp_protocol.rb', line 3269

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



3271
3272
3273
3274
3275
3276
3277
3278
# File 'lib/dsp/dsp_protocol.rb', line 3271

def from_h!(value)
  value = {} if value.nil?
  self.arguments = CompletionsArguments.new(value['arguments']) unless value['arguments'].nil?
  self.command = value['command']
  self.seq = value['seq']
  self.type = value['type']
  self
end