Class: TencentCloud::Mrs::V20200910::BaseItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::BaseItem
- 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, _alias = nil, coords = nil) ⇒ BaseItem
constructor
A new instance of BaseItem.
Constructor Details
#initialize(name = nil, src = nil, value = nil, _alias = nil, coords = nil) ⇒ BaseItem
Returns a new instance of BaseItem.
174 175 176 177 178 179 180 |
# File 'lib/v20200910/models.rb', line 174 def initialize(name=nil, src=nil, value=nil, _alias=nil, coords=nil) @Name = name @Src = src @Value = value @Alias = _alias @Coords = coords end |
Instance Attribute Details
#Alias ⇒ Object
172 173 174 |
# File 'lib/v20200910/models.rb', line 172 def Alias @Alias end |
#Coords ⇒ Object
172 173 174 |
# File 'lib/v20200910/models.rb', line 172 def Coords @Coords end |
#Name ⇒ Object
172 173 174 |
# File 'lib/v20200910/models.rb', line 172 def Name @Name end |
#Src ⇒ Object
172 173 174 |
# File 'lib/v20200910/models.rb', line 172 def Src @Src end |
#Value ⇒ Object
172 173 174 |
# File 'lib/v20200910/models.rb', line 172 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
# File 'lib/v20200910/models.rb', line 182 def deserialize(params) @Name = params['Name'] @Src = params['Src'] @Value = params['Value'] @Alias = params['Alias'] unless params['Coords'].nil? @Coords = [] params['Coords'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @Coords << coord_tmp end end end |