Class: TencentCloud::Mrs::V20200910::BlockInfo

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

Overview

块信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(index = nil, positive = nil, src = nil, value = nil, type = nil, name = nil, size = nil) ⇒ BlockInfo

Returns a new instance of BlockInfo.



1050
1051
1052
1053
1054
1055
1056
1057
1058
# File 'lib/v20200910/models.rb', line 1050

def initialize(index=nil, positive=nil, src=nil, value=nil, type=nil, name=nil, size=nil)
  @Index = index
  @Positive = positive
  @Src = src
  @Value = value
  @Type = type
  @Name = name
  @Size = size
end

Instance Attribute Details

#IndexObject

Parameters:

  • Index:

    原文位置

  • Positive:

    阳性

  • Src:

    原文

  • Value:

  • Type:

    类型

  • Name:

    名称

  • Size:

    大小



1048
1049
1050
# File 'lib/v20200910/models.rb', line 1048

def Index
  @Index
end

#NameObject

Parameters:

  • Index:

    原文位置

  • Positive:

    阳性

  • Src:

    原文

  • Value:

  • Type:

    类型

  • Name:

    名称

  • Size:

    大小



1048
1049
1050
# File 'lib/v20200910/models.rb', line 1048

def Name
  @Name
end

#PositiveObject

Parameters:

  • Index:

    原文位置

  • Positive:

    阳性

  • Src:

    原文

  • Value:

  • Type:

    类型

  • Name:

    名称

  • Size:

    大小



1048
1049
1050
# File 'lib/v20200910/models.rb', line 1048

def Positive
  @Positive
end

#SizeObject

Parameters:

  • Index:

    原文位置

  • Positive:

    阳性

  • Src:

    原文

  • Value:

  • Type:

    类型

  • Name:

    名称

  • Size:

    大小



1048
1049
1050
# File 'lib/v20200910/models.rb', line 1048

def Size
  @Size
end

#SrcObject

Parameters:

  • Index:

    原文位置

  • Positive:

    阳性

  • Src:

    原文

  • Value:

  • Type:

    类型

  • Name:

    名称

  • Size:

    大小



1048
1049
1050
# File 'lib/v20200910/models.rb', line 1048

def Src
  @Src
end

#TypeObject

Parameters:

  • Index:

    原文位置

  • Positive:

    阳性

  • Src:

    原文

  • Value:

  • Type:

    类型

  • Name:

    名称

  • Size:

    大小



1048
1049
1050
# File 'lib/v20200910/models.rb', line 1048

def Type
  @Type
end

#ValueObject

Parameters:

  • Index:

    原文位置

  • Positive:

    阳性

  • Src:

    原文

  • Value:

  • Type:

    类型

  • Name:

    名称

  • Size:

    大小



1048
1049
1050
# File 'lib/v20200910/models.rb', line 1048

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
# File 'lib/v20200910/models.rb', line 1060

def deserialize(params)
  @Index = params['Index']
  @Positive = params['Positive']
  @Src = params['Src']
  @Value = params['Value']
  @Type = params['Type']
  @Name = params['Name']
  unless params['Size'].nil?
    @Size = []
    params['Size'].each do |i|
      size_tmp = Size.new
      size_tmp.deserialize(i)
      @Size << size_tmp
    end
  end
end