Class: TencentCloud::Tcr::V20190924::FavorResp

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

Overview

用于获取收藏仓库的响应

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, repoinfo = nil) ⇒ FavorResp

Returns a new instance of FavorResp.



4697
4698
4699
4700
# File 'lib/v20190924/models.rb', line 4697

def initialize(totalcount=nil, repoinfo=nil)
  @TotalCount = totalcount
  @RepoInfo = repoinfo
end

Instance Attribute Details

#RepoInfo ⇒ Object

Parameters:

  • TotalCount: —

    收藏仓库的总数

  • RepoInfo: —

    仓库信息数组



4695
4696
4697
# File 'lib/v20190924/models.rb', line 4695

def RepoInfo
  @RepoInfo
end

#TotalCount ⇒ Object

Parameters:

  • TotalCount: —

    收藏仓库的总数

  • RepoInfo: —

    仓库信息数组



4695
4696
4697
# File 'lib/v20190924/models.rb', line 4695

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
# File 'lib/v20190924/models.rb', line 4702

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['RepoInfo'].nil?
    @RepoInfo = []
    params['RepoInfo'].each do |i|
      favors_tmp = Favors.new
      favors_tmp.deserialize(i)
      @RepoInfo << favors_tmp
    end
  end
end