Class: TencentCloud::Cms::V20190321::CustomResult

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

Overview

文本返回的自定义词库结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(keywords = nil, libname = nil, libid = nil, type = nil) ⇒ CustomResult

Returns a new instance of CustomResult.



265
266
267
268
269
270
# File 'lib/v20190321/models.rb', line 265

def initialize(keywords=nil, libname=nil, libid=nil, type=nil)
  @Keywords = keywords
  @LibName = libname
  @LibId = libid
  @Type = type
end

Instance Attribute Details

#KeywordsObject

Parameters:

  • Keywords:

    命中的自定义关键词

  • LibName:

    自定义词库名称

  • LibId:

    自定义库id

  • Type:

    命中的自定义关键词的类型



263
264
265
# File 'lib/v20190321/models.rb', line 263

def Keywords
  @Keywords
end

#LibIdObject

Parameters:

  • Keywords:

    命中的自定义关键词

  • LibName:

    自定义词库名称

  • LibId:

    自定义库id

  • Type:

    命中的自定义关键词的类型



263
264
265
# File 'lib/v20190321/models.rb', line 263

def LibId
  @LibId
end

#LibNameObject

Parameters:

  • Keywords:

    命中的自定义关键词

  • LibName:

    自定义词库名称

  • LibId:

    自定义库id

  • Type:

    命中的自定义关键词的类型



263
264
265
# File 'lib/v20190321/models.rb', line 263

def LibName
  @LibName
end

#TypeObject

Parameters:

  • Keywords:

    命中的自定义关键词

  • LibName:

    自定义词库名称

  • LibId:

    自定义库id

  • Type:

    命中的自定义关键词的类型



263
264
265
# File 'lib/v20190321/models.rb', line 263

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



272
273
274
275
276
277
# File 'lib/v20190321/models.rb', line 272

def deserialize(params)
  @Keywords = params['Keywords']
  @LibName = params['LibName']
  @LibId = params['LibId']
  @Type = params['Type']
end