Class: TencentCloud::Mrs::V20200910::Elastic

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200910/models.rb

Overview

弹性质地

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index = nil, score = nil, src = nil, value = nil, name = nil) ⇒ Elastic

Returns a new instance of Elastic.



3126
3127
3128
3129
3130
3131
3132
# File 'lib/v20200910/models.rb', line 3126

def initialize(index=nil, score=nil, src=nil, value=nil, name=nil)
  @Index = index
  @Score = score
  @Src = src
  @Value = value
  @Name = name
end

Instance Attribute Details

#IndexObject

Parameters:

  • Index:

    原文位置

  • Score:

    分数

  • Src:

    原文

  • Value:

  • Name:

    名称



3124
3125
3126
# File 'lib/v20200910/models.rb', line 3124

def Index
  @Index
end

#NameObject

Parameters:

  • Index:

    原文位置

  • Score:

    分数

  • Src:

    原文

  • Value:

  • Name:

    名称



3124
3125
3126
# File 'lib/v20200910/models.rb', line 3124

def Name
  @Name
end

#ScoreObject

Parameters:

  • Index:

    原文位置

  • Score:

    分数

  • Src:

    原文

  • Value:

  • Name:

    名称



3124
3125
3126
# File 'lib/v20200910/models.rb', line 3124

def Score
  @Score
end

#SrcObject

Parameters:

  • Index:

    原文位置

  • Score:

    分数

  • Src:

    原文

  • Value:

  • Name:

    名称



3124
3125
3126
# File 'lib/v20200910/models.rb', line 3124

def Src
  @Src
end

#ValueObject

Parameters:

  • Index:

    原文位置

  • Score:

    分数

  • Src:

    原文

  • Value:

  • Name:

    名称



3124
3125
3126
# File 'lib/v20200910/models.rb', line 3124

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



3134
3135
3136
3137
3138
3139
3140
# File 'lib/v20200910/models.rb', line 3134

def deserialize(params)
  @Index = params['Index']
  @Score = params['Score']
  @Src = params['Src']
  @Value = params['Value']
  @Name = params['Name']
end