Class: TencentCloud::Mrs::V20200910::Report
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::Report
- Defined in:
- lib/v20200910/models.rb
Overview
报告类型
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, index = nil, src = nil, value = nil, coords = nil) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(name = nil, index = nil, src = nil, value = nil, coords = nil) ⇒ Report
Returns a new instance of Report.
9137 9138 9139 9140 9141 9142 9143 |
# File 'lib/v20200910/models.rb', line 9137 def initialize(name=nil, index=nil, src=nil, value=nil, coords=nil) @Name = name @Index = index @Src = src @Value = value @Coords = coords end |
Instance Attribute Details
#Coords ⇒ Object
9135 9136 9137 |
# File 'lib/v20200910/models.rb', line 9135 def Coords @Coords end |
#Index ⇒ Object
9135 9136 9137 |
# File 'lib/v20200910/models.rb', line 9135 def Index @Index end |
#Name ⇒ Object
9135 9136 9137 |
# File 'lib/v20200910/models.rb', line 9135 def Name @Name end |
#Src ⇒ Object
9135 9136 9137 |
# File 'lib/v20200910/models.rb', line 9135 def Src @Src end |
#Value ⇒ Object
9135 9136 9137 |
# File 'lib/v20200910/models.rb', line 9135 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 |
# File 'lib/v20200910/models.rb', line 9145 def deserialize(params) @Name = params['Name'] @Index = params['Index'] @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 |