Class: TencentCloud::Mrs::V20200910::BaseItem3
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::BaseItem3
- Defined in:
- lib/v20200910/models.rb
Overview
基础类型
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, src = nil, value = nil, coords = nil, order = nil) ⇒ BaseItem3
constructor
A new instance of BaseItem3.
Constructor Details
#initialize(name = nil, src = nil, value = nil, coords = nil, order = nil) ⇒ BaseItem3
Returns a new instance of BaseItem3.
248 249 250 251 252 253 254 |
# File 'lib/v20200910/models.rb', line 248 def initialize(name=nil, src=nil, value=nil, coords=nil, order=nil) @Name = name @Src = src @Value = value @Coords = coords @Order = order end |
Instance Attribute Details
#Coords ⇒ Object
246 247 248 |
# File 'lib/v20200910/models.rb', line 246 def Coords @Coords end |
#Name ⇒ Object
246 247 248 |
# File 'lib/v20200910/models.rb', line 246 def Name @Name end |
#Order ⇒ Object
246 247 248 |
# File 'lib/v20200910/models.rb', line 246 def Order @Order end |
#Src ⇒ Object
246 247 248 |
# File 'lib/v20200910/models.rb', line 246 def Src @Src end |
#Value ⇒ Object
246 247 248 |
# File 'lib/v20200910/models.rb', line 246 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
256 257 258 259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/v20200910/models.rb', line 256 def deserialize(params) @Name = params['Name'] @Src = params['Src'] @Value = params['Value'] unless params['Coords'].nil? @Coords = [] params['Coords'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @Coords << coord_tmp end end @Order = params['Order'] end |