Class: TencentCloud::Tem::V20210701::ServicePage
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tem::V20210701::ServicePage
- Defined in:
- lib/v20210701/models.rb
Overview
服务分页
Instance Attribute Summary collapse
-
#Current ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Pages ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Records ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Size ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
-
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(records = nil, total = nil, size = nil, pages = nil, current = nil) ⇒ ServicePage
constructor
A new instance of ServicePage.
Constructor Details
#initialize(records = nil, total = nil, size = nil, pages = nil, current = nil) ⇒ ServicePage
Returns a new instance of ServicePage.
4487 4488 4489 4490 4491 4492 4493 |
# File 'lib/v20210701/models.rb', line 4487 def initialize(records=nil, total=nil, size=nil, pages=nil, current=nil) @Records = records @Total = total @Size = size @Pages = pages @Current = current end |
Instance Attribute Details
#Current ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
4485 4486 4487 |
# File 'lib/v20210701/models.rb', line 4485 def Current @Current end |
#Pages ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
4485 4486 4487 |
# File 'lib/v20210701/models.rb', line 4485 def Pages @Pages end |
#Records ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
4485 4486 4487 |
# File 'lib/v20210701/models.rb', line 4485 def Records @Records end |
#Size ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
4485 4486 4487 |
# File 'lib/v20210701/models.rb', line 4485 def Size @Size end |
#Total ⇒ Object
注意:此字段可能返回 null,表示取不到有效值。
4485 4486 4487 |
# File 'lib/v20210701/models.rb', line 4485 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 |
# File 'lib/v20210701/models.rb', line 4495 def deserialize(params) unless params['Records'].nil? @Records = [] params['Records'].each do |i| temservice_tmp = TemService.new temservice_tmp.deserialize(i) @Records << temservice_tmp end end @Total = params['Total'] @Size = params['Size'] @Pages = params['Pages'] @Current = params['Current'] end |