Class: DSP::EvaluateRequest

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

Overview

interface EvaluateRequest extends Request {

    arguments: EvaluateArguments;
}

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: EvaluateArguments # type: string # type: number # type: string



2886
2887
2888
# File 'lib/dsp/dsp_protocol.rb', line 2886

def arguments
  @arguments
end

#commandObject

type: EvaluateArguments # type: string # type: number # type: string



2886
2887
2888
# File 'lib/dsp/dsp_protocol.rb', line 2886

def command
  @command
end

#seqObject

type: EvaluateArguments # type: string # type: number # type: string



2886
2887
2888
# File 'lib/dsp/dsp_protocol.rb', line 2886

def seq
  @seq
end

#typeObject

type: EvaluateArguments # type: string # type: number # type: string



2886
2887
2888
# File 'lib/dsp/dsp_protocol.rb', line 2886

def type
  @type
end

Instance Method Details

#from_h!(value) ⇒ Object



2888
2889
2890
2891
2892
2893
2894
2895
# File 'lib/dsp/dsp_protocol.rb', line 2888

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