Class: TencentCloud::Mrs::V20200910::Desc
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::Desc
- Defined in:
- lib/v20200910/models.rb
Overview
描述
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(text = nil, organ = nil, tuber = nil, coords = nil) ⇒ Desc
constructor
A new instance of Desc.
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
#Coords ⇒ Object
2258 2259 2260 |
# File 'lib/v20200910/models.rb', line 2258 def Coords @Coords end |
#Organ ⇒ Object
2258 2259 2260 |
# File 'lib/v20200910/models.rb', line 2258 def Organ @Organ end |
#Text ⇒ Object
2258 2259 2260 |
# File 'lib/v20200910/models.rb', line 2258 def Text @Text end |
#Tuber ⇒ Object
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 |