Class: TencentCloud::Ocr::V20181119::ItemInfo

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

Overview

智能结构化元素组

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = nil, value = nil) ⇒ ItemInfo

Returns a new instance of ItemInfo.



5664
5665
5666
5667
# File 'lib/v20181119/models.rb', line 5664

def initialize(key=nil, value=nil)
  @Key = key
  @Value = value
end

Instance Attribute Details

#KeyObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Key:

    key信息组

  • Value:

    Value信息组



5662
5663
5664
# File 'lib/v20181119/models.rb', line 5662

def Key
  @Key
end

#ValueObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Key:

    key信息组

  • Value:

    Value信息组



5662
5663
5664
# File 'lib/v20181119/models.rb', line 5662

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
# File 'lib/v20181119/models.rb', line 5669

def deserialize(params)
  unless params['Key'].nil?
    @Key = Key.new
    @Key.deserialize(params['Key'])
  end
  unless params['Value'].nil?
    @Value = Value.new
    @Value.deserialize(params['Value'])
  end
end