Class: TencentCloud::Ocr::V20181119::TemporaryIDCardInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TemporaryIDCardInfo
- 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) ⇒ TemporaryIDCardInfo
constructor
A new instance of TemporaryIDCardInfo.
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) ⇒ TemporaryIDCardInfo
Returns a new instance of TemporaryIDCardInfo.
11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 |
# File 'lib/v20181119/models.rb', line 11587 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
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def Address @Address end |
#Authority ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def Authority @Authority end |
#Birth ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def Birth @Birth end |
#CardImage ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def CardImage @CardImage end |
#IdNum ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def IdNum @IdNum end |
#Name ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def Name @Name end |
#Nation ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def Nation @Nation end |
#PortraitImage ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def PortraitImage @PortraitImage end |
#Sex ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def Sex @Sex end |
#ValidDate ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def ValidDate @ValidDate end |
#WarnInfos ⇒ Object
11585 11586 11587 |
# File 'lib/v20181119/models.rb', line 11585 def WarnInfos @WarnInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 |
# File 'lib/v20181119/models.rb', line 11601 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 |