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.
5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 |
# File 'lib/v20181119/models.rb', line 5029 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
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def Address @Address end |
#Authority ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def Authority @Authority end |
#Birth ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def Birth @Birth end |
#CardImage ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def CardImage @CardImage end |
#IdNum ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def IdNum @IdNum end |
#Name ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def Name @Name end |
#Nation ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def Nation @Nation end |
#PortraitImage ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def PortraitImage @PortraitImage end |
#Sex ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def Sex @Sex end |
#ValidDate ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def ValidDate @ValidDate end |
#WarnInfos ⇒ Object
5027 5028 5029 |
# File 'lib/v20181119/models.rb', line 5027 def WarnInfos @WarnInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 |
# File 'lib/v20181119/models.rb', line 5043 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 |