Class: TencentCloud::Iss::V20230517::PetAIResultInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iss::V20230517::PetAIResultInfo
- Defined in:
- lib/v20230517/models.rb
Overview
宠物识别结果详情
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(time = nil, url = nil, petinfo = nil) ⇒ PetAIResultInfo
constructor
A new instance of PetAIResultInfo.
Constructor Details
#initialize(time = nil, url = nil, petinfo = nil) ⇒ PetAIResultInfo
Returns a new instance of PetAIResultInfo.
6161 6162 6163 6164 6165 |
# File 'lib/v20230517/models.rb', line 6161 def initialize(time=nil, url=nil, petinfo=nil) @Time = time @Url = url @PetInfo = petinfo end |
Instance Attribute Details
#PetInfo ⇒ Object
6159 6160 6161 |
# File 'lib/v20230517/models.rb', line 6159 def PetInfo @PetInfo end |
#Time ⇒ Object
6159 6160 6161 |
# File 'lib/v20230517/models.rb', line 6159 def Time @Time end |
#Url ⇒ Object
6159 6160 6161 |
# File 'lib/v20230517/models.rb', line 6159 def Url @Url end |
Instance Method Details
#deserialize(params) ⇒ Object
6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 |
# File 'lib/v20230517/models.rb', line 6167 def deserialize(params) @Time = params['Time'] @Url = params['Url'] unless params['PetInfo'].nil? @PetInfo = [] params['PetInfo'].each do |i| baseairesultinfo_tmp = BaseAIResultInfo.new baseairesultinfo_tmp.deserialize(i) @PetInfo << baseairesultinfo_tmp end end end |