Class: TencentCloud::Ams::V20201229::HitInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ams::V20201229::HitInfo
- Defined in:
- lib/v20201229/models.rb
Overview
关键词命中位置信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, keyword = nil, libname = nil, positions = nil) ⇒ HitInfo
constructor
A new instance of HitInfo.
Constructor Details
#initialize(type = nil, keyword = nil, libname = nil, positions = nil) ⇒ HitInfo
861 862 863 864 865 866 |
# File 'lib/v20201229/models.rb', line 861 def initialize(type=nil, keyword=nil, libname=nil, positions=nil) @Type = type @Keyword = keyword @LibName = libname @Positions = positions end |
Instance Attribute Details
#Keyword ⇒ Object
859 860 861 |
# File 'lib/v20201229/models.rb', line 859 def Keyword @Keyword end |
#LibName ⇒ Object
859 860 861 |
# File 'lib/v20201229/models.rb', line 859 def LibName @LibName end |
#Positions ⇒ Object
859 860 861 |
# File 'lib/v20201229/models.rb', line 859 def Positions @Positions end |
#Type ⇒ Object
859 860 861 |
# File 'lib/v20201229/models.rb', line 859 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
868 869 870 871 872 873 874 875 876 877 878 879 880 |
# File 'lib/v20201229/models.rb', line 868 def deserialize(params) @Type = params['Type'] @Keyword = params['Keyword'] @LibName = params['LibName'] unless params['Positions'].nil? @Positions = [] params['Positions'].each do |i| position_tmp = Position.new position_tmp.deserialize(i) @Positions << position_tmp end end end |