Class: TencentCloud::Mrs::V20200910::Desc

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, organ = nil, tuber = nil, coords = nil) ⇒ Desc

Returns a new instance of Desc.



2260
2261
2262
2263
2264
2265
# File 'lib/v20200910/models.rb', line 2260

def initialize(text=nil, organ=nil, tuber=nil, coords=nil)
  @Text = text
  @Organ = organ
  @Tuber = tuber
  @Coords = coords
end

Instance Attribute Details

#CoordsObject

Parameters:

  • Text:

    描述

  • Organ:

    器官

  • Tuber:

    结节

  • Coords:

    坐标



2258
2259
2260
# File 'lib/v20200910/models.rb', line 2258

def Coords
  @Coords
end

#OrganObject

Parameters:

  • Text:

    描述

  • Organ:

    器官

  • Tuber:

    结节

  • Coords:

    坐标



2258
2259
2260
# File 'lib/v20200910/models.rb', line 2258

def Organ
  @Organ
end

#TextObject

Parameters:

  • Text:

    描述

  • Organ:

    器官

  • Tuber:

    结节

  • Coords:

    坐标



2258
2259
2260
# File 'lib/v20200910/models.rb', line 2258

def Text
  @Text
end

#TuberObject

Parameters:

  • Text:

    描述

  • Organ:

    器官

  • Tuber:

    结节

  • Coords:

    坐标



2258
2259
2260
# File 'lib/v20200910/models.rb', line 2258

def Tuber
  @Tuber
end

Instance Method Details

#deserialize(params) ⇒ Object



2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
# File 'lib/v20200910/models.rb', line 2267

def deserialize(params)
  @Text = params['Text']
  unless params['Organ'].nil?
    @Organ = []
    params['Organ'].each do |i|
      organ_tmp = Organ.new
      organ_tmp.deserialize(i)
      @Organ << organ_tmp
    end
  end
  unless params['Tuber'].nil?
    @Tuber = []
    params['Tuber'].each do |i|
      tuberinfo_tmp = TuberInfo.new
      tuberinfo_tmp.deserialize(i)
      @Tuber << tuberinfo_tmp
    end
  end
  unless params['Coords'].nil?
    @Coords = []
    params['Coords'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @Coords << coord_tmp
    end
  end
end