Class: TencentCloud::Mrs::V20200910::DescInfo

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

Overview

描述段落

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, infos = nil) ⇒ DescInfo

Returns a new instance of DescInfo.



2305
2306
2307
2308
# File 'lib/v20200910/models.rb', line 2305

def initialize(text=nil, infos=nil)
  @Text = text
  @Infos = infos
end

Instance Attribute Details

#InfosObject

Parameters:

  • Text:

    描述段落文本

  • Infos:

    描述段落详情



2303
2304
2305
# File 'lib/v20200910/models.rb', line 2303

def Infos
  @Infos
end

#TextObject

Parameters:

  • Text:

    描述段落文本

  • Infos:

    描述段落详情



2303
2304
2305
# File 'lib/v20200910/models.rb', line 2303

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
# File 'lib/v20200910/models.rb', line 2310

def deserialize(params)
  unless params['Text'].nil?
    @Text = BaseInfo.new
    @Text.deserialize(params['Text'])
  end
  unless params['Infos'].nil?
    @Infos = []
    params['Infos'].each do |i|
      detailinformation_tmp = DetailInformation.new
      detailinformation_tmp.deserialize(i)
      @Infos << detailinformation_tmp
    end
  end
end