Class: TencentCloud::Hasim::V20210716::TacticInfos
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hasim::V20210716::TacticInfos
- Defined in:
- lib/v20210716/models.rb
Overview
策略信息集合
Instance Attribute Summary collapse
-
#List ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(total = nil, list = nil) ⇒ TacticInfos
constructor
A new instance of TacticInfos.
Constructor Details
#initialize(total = nil, list = nil) ⇒ TacticInfos
Returns a new instance of TacticInfos.
1924 1925 1926 1927 |
# File 'lib/v20210716/models.rb', line 1924 def initialize(total=nil, list=nil) @Total = total @List = list end |
Instance Attribute Details
#List ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1922 1923 1924 |
# File 'lib/v20210716/models.rb', line 1922 def List @List end |
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
1922 1923 1924 |
# File 'lib/v20210716/models.rb', line 1922 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 |
# File 'lib/v20210716/models.rb', line 1929 def deserialize(params) @Total = params['Total'] unless params['List'].nil? @List = [] params['List'].each do |i| tactic_tmp = Tactic.new tactic_tmp.deserialize(i) @List << tactic_tmp end end end |