Class: TencentCloud::Mrs::V20200910::BaseItem2
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::BaseItem2
- 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) ⇒ BaseItem2
constructor
A new instance of BaseItem2.
Constructor Details
#initialize(name = nil, src = nil, value = nil, coords = nil) ⇒ BaseItem2
Returns a new instance of BaseItem2.
211 212 213 214 215 216 |
# File 'lib/v20200910/models.rb', line 211 def initialize(name=nil, src=nil, value=nil, coords=nil) @Name = name @Src = src @Value = value @Coords = coords end |
Instance Attribute Details
#Coords ⇒ Object
209 210 211 |
# File 'lib/v20200910/models.rb', line 209 def Coords @Coords end |
#Name ⇒ Object
209 210 211 |
# File 'lib/v20200910/models.rb', line 209 def Name @Name end |
#Src ⇒ Object
209 210 211 |
# File 'lib/v20200910/models.rb', line 209 def Src @Src end |
#Value ⇒ Object
209 210 211 |
# File 'lib/v20200910/models.rb', line 209 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
218 219 220 221 222 223 224 225 226 227 228 229 230 |
# File 'lib/v20200910/models.rb', line 218 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 end |