Class: TencentCloud::Tem::V20210701::ServicePage

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210701/models.rb

Overview

服务分页

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#CurrentObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Records:

    条目

  • Total:

    总数

  • Size:

    条目

  • Pages:

    页数

  • Current:

    当前条数



4485
4486
4487
# File 'lib/v20210701/models.rb', line 4485

def Current
  @Current
end

#PagesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Records:

    条目

  • Total:

    总数

  • Size:

    条目

  • Pages:

    页数

  • Current:

    当前条数



4485
4486
4487
# File 'lib/v20210701/models.rb', line 4485

def Pages
  @Pages
end

#RecordsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Records:

    条目

  • Total:

    总数

  • Size:

    条目

  • Pages:

    页数

  • Current:

    当前条数



4485
4486
4487
# File 'lib/v20210701/models.rb', line 4485

def Records
  @Records
end

#SizeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Records:

    条目

  • Total:

    总数

  • Size:

    条目

  • Pages:

    页数

  • Current:

    当前条数



4485
4486
4487
# File 'lib/v20210701/models.rb', line 4485

def Size
  @Size
end

#TotalObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Records:

    条目

  • Total:

    总数

  • Size:

    条目

  • Pages:

    页数

  • Current:

    当前条数



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