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.



5693
5694
5695
5696
# File 'lib/v20181119/models.rb', line 5693

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

Instance Attribute Details

#KeyObject

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

Parameters:

  • Key:

    key信息组

  • Value:

    Value信息组



5691
5692
5693
# File 'lib/v20181119/models.rb', line 5691

def Key
  @Key
end

#ValueObject

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

Parameters:

  • Key:

    key信息组

  • Value:

    Value信息组



5691
5692
5693
# File 'lib/v20181119/models.rb', line 5691

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
# File 'lib/v20181119/models.rb', line 5698

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