Class: TencentCloud::Mrs::V20200910::BaseInfo

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

Overview

标准信息类

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, index = nil, src = nil, value = nil, coords = nil) ⇒ BaseInfo

Returns a new instance of BaseInfo.



135
136
137
138
139
140
141
# File 'lib/v20200910/models.rb', line 135

def initialize(name=nil, index=nil, src=nil, value=nil, coords=nil)
  @Name = name
  @Index = index
  @Src = src
  @Value = value
  @Coords = coords
end

Instance Attribute Details

#CoordsObject

Parameters:

  • Name:

    项目名称

  • Index:

    索引

  • Src:

    原文

  • Value:

    标准值

  • Coords:

    原文对应坐标



133
134
135
# File 'lib/v20200910/models.rb', line 133

def Coords
  @Coords
end

#IndexObject

Parameters:

  • Name:

    项目名称

  • Index:

    索引

  • Src:

    原文

  • Value:

    标准值

  • Coords:

    原文对应坐标



133
134
135
# File 'lib/v20200910/models.rb', line 133

def Index
  @Index
end

#NameObject

Parameters:

  • Name:

    项目名称

  • Index:

    索引

  • Src:

    原文

  • Value:

    标准值

  • Coords:

    原文对应坐标



133
134
135
# File 'lib/v20200910/models.rb', line 133

def Name
  @Name
end

#SrcObject

Parameters:

  • Name:

    项目名称

  • Index:

    索引

  • Src:

    原文

  • Value:

    标准值

  • Coords:

    原文对应坐标



133
134
135
# File 'lib/v20200910/models.rb', line 133

def Src
  @Src
end

#ValueObject

Parameters:

  • Name:

    项目名称

  • Index:

    索引

  • Src:

    原文

  • Value:

    标准值

  • Coords:

    原文对应坐标



133
134
135
# File 'lib/v20200910/models.rb', line 133

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File 'lib/v20200910/models.rb', line 143

def deserialize(params)
  @Name = params['Name']
  @Index = params['Index']
  @Src = params['Src']
  @Value = params['Value']
  unless params['Coords'].nil?
    @Coords = []
    params['Coords'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @Coords << coord_tmp
    end
  end
end