Class: TencentCloud::Mrs::V20200910::InvasiveV2
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mrs::V20200910::InvasiveV2
- Defined in:
- lib/v20200910/models.rb
Overview
侵犯
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(index = nil, part = nil, positive = nil, src = nil, coords = nil) ⇒ InvasiveV2
constructor
A new instance of InvasiveV2.
Constructor Details
#initialize(index = nil, part = nil, positive = nil, src = nil, coords = nil) ⇒ InvasiveV2
Returns a new instance of InvasiveV2.
6022 6023 6024 6025 6026 6027 6028 |
# File 'lib/v20200910/models.rb', line 6022 def initialize(index=nil, part=nil, positive=nil, src=nil, coords=nil) @Index = index @Part = part @Positive = positive @Src = src @Coords = coords end |
Instance Attribute Details
#Coords ⇒ Object
6020 6021 6022 |
# File 'lib/v20200910/models.rb', line 6020 def Coords @Coords end |
#Index ⇒ Object
6020 6021 6022 |
# File 'lib/v20200910/models.rb', line 6020 def Index @Index end |
#Part ⇒ Object
6020 6021 6022 |
# File 'lib/v20200910/models.rb', line 6020 def Part @Part end |
#Positive ⇒ Object
6020 6021 6022 |
# File 'lib/v20200910/models.rb', line 6020 def Positive @Positive end |
#Src ⇒ Object
6020 6021 6022 |
# File 'lib/v20200910/models.rb', line 6020 def Src @Src end |
Instance Method Details
#deserialize(params) ⇒ Object
6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 |
# File 'lib/v20200910/models.rb', line 6030 def deserialize(params) @Index = params['Index'] unless params['Part'].nil? @Part = Part.new @Part.deserialize(params['Part']) end @Positive = params['Positive'] @Src = params['Src'] unless params['Coords'].nil? @Coords = [] params['Coords'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @Coords << coord_tmp end end end |