Class: TencentCloud::Mrs::V20200910::BlockInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::BlockInfo
- Defined in:
- lib/v20200910/models.rb
Overview
块信息
Instance Attribute Summary collapse
- #Index ⇒ Object
- #Name ⇒ Object
- #Positive ⇒ Object
- #Size ⇒ Object
- #Src ⇒ Object
- #Type ⇒ Object
- #Value ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(index = nil, positive = nil, src = nil, value = nil, type = nil, name = nil, size = nil) ⇒ BlockInfo
constructor
A new instance of BlockInfo.
Constructor Details
#initialize(index = nil, positive = nil, src = nil, value = nil, type = nil, name = nil, size = nil) ⇒ BlockInfo
Returns a new instance of BlockInfo.
1050 1051 1052 1053 1054 1055 1056 1057 1058 |
# File 'lib/v20200910/models.rb', line 1050 def initialize(index=nil, positive=nil, src=nil, value=nil, type=nil, name=nil, size=nil) @Index = index @Positive = positive @Src = src @Value = value @Type = type @Name = name @Size = size end |
Instance Attribute Details
#Index ⇒ Object
1048 1049 1050 |
# File 'lib/v20200910/models.rb', line 1048 def Index @Index end |
#Name ⇒ Object
1048 1049 1050 |
# File 'lib/v20200910/models.rb', line 1048 def Name @Name end |
#Positive ⇒ Object
1048 1049 1050 |
# File 'lib/v20200910/models.rb', line 1048 def Positive @Positive end |
#Size ⇒ Object
1048 1049 1050 |
# File 'lib/v20200910/models.rb', line 1048 def Size @Size end |
#Src ⇒ Object
1048 1049 1050 |
# File 'lib/v20200910/models.rb', line 1048 def Src @Src end |
#Type ⇒ Object
1048 1049 1050 |
# File 'lib/v20200910/models.rb', line 1048 def Type @Type end |
#Value ⇒ Object
1048 1049 1050 |
# File 'lib/v20200910/models.rb', line 1048 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 |
# File 'lib/v20200910/models.rb', line 1060 def deserialize(params) @Index = params['Index'] @Positive = params['Positive'] @Src = params['Src'] @Value = params['Value'] @Type = params['Type'] @Name = params['Name'] unless params['Size'].nil? @Size = [] params['Size'].each do |i| size_tmp = Size.new size_tmp.deserialize(i) @Size << size_tmp end end end |