Class: TencentCloud::Ocr::V20181119::IDCardInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::IDCardInfo
- Defined in:
- lib/v20181119/models.rb
Overview
身份证信息返回
Instance Attribute Summary collapse
- #Address ⇒ Object
- #Authority ⇒ Object
- #Birth ⇒ Object
- #CardImage ⇒ Object
- #IdNum ⇒ Object
- #Name ⇒ Object
- #Nation ⇒ Object
- #PortraitImage ⇒ Object
- #Sex ⇒ Object
- #ValidDate ⇒ Object
- #WarnInfos ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, sex = nil, nation = nil, birth = nil, address = nil, idnum = nil, authority = nil, validdate = nil, warninfos = nil, cardimage = nil, portraitimage = nil) ⇒ IDCardInfo
constructor
A new instance of IDCardInfo.
Constructor Details
#initialize(name = nil, sex = nil, nation = nil, birth = nil, address = nil, idnum = nil, authority = nil, validdate = nil, warninfos = nil, cardimage = nil, portraitimage = nil) ⇒ IDCardInfo
Returns a new instance of IDCardInfo.
4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 |
# File 'lib/v20181119/models.rb', line 4258 def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, =nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil) @Name = name @Sex = sex @Nation = nation @Birth = birth @Address = address @IdNum = idnum @Authority = @ValidDate = validdate @WarnInfos = warninfos @CardImage = cardimage @PortraitImage = portraitimage end |
Instance Attribute Details
#Address ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def Address @Address end |
#Authority ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def Authority @Authority end |
#Birth ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def Birth @Birth end |
#CardImage ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def CardImage @CardImage end |
#IdNum ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def IdNum @IdNum end |
#Name ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def Name @Name end |
#Nation ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def Nation @Nation end |
#PortraitImage ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def PortraitImage @PortraitImage end |
#Sex ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def Sex @Sex end |
#ValidDate ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def ValidDate @ValidDate end |
#WarnInfos ⇒ Object
4256 4257 4258 |
# File 'lib/v20181119/models.rb', line 4256 def WarnInfos @WarnInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 |
# File 'lib/v20181119/models.rb', line 4272 def deserialize(params) unless params['Name'].nil? @Name = ContentInfo.new @Name.deserialize(params['Name']) end unless params['Sex'].nil? @Sex = ContentInfo.new @Sex.deserialize(params['Sex']) end unless params['Nation'].nil? @Nation = ContentInfo.new @Nation.deserialize(params['Nation']) end unless params['Birth'].nil? @Birth = ContentInfo.new @Birth.deserialize(params['Birth']) end unless params['Address'].nil? @Address = ContentInfo.new @Address.deserialize(params['Address']) end unless params['IdNum'].nil? @IdNum = ContentInfo.new @IdNum.deserialize(params['IdNum']) end unless params['Authority'].nil? @Authority = ContentInfo.new @Authority.deserialize(params['Authority']) end unless params['ValidDate'].nil? @ValidDate = ContentInfo.new @ValidDate.deserialize(params['ValidDate']) end unless params['WarnInfos'].nil? @WarnInfos = CardWarnInfo.new @WarnInfos.deserialize(params['WarnInfos']) end unless params['CardImage'].nil? @CardImage = ContentInfo.new @CardImage.deserialize(params['CardImage']) end unless params['PortraitImage'].nil? @PortraitImage = ContentInfo.new @PortraitImage.deserialize(params['PortraitImage']) end end |