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.
11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 |
# File 'lib/v20181119/models.rb', line 11915 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
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def Address @Address end |
#Authority ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def Authority @Authority end |
#Birth ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def Birth @Birth end |
#CardImage ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def CardImage @CardImage end |
#IdNum ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def IdNum @IdNum end |
#Name ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def Name @Name end |
#Nation ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def Nation @Nation end |
#PortraitImage ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def PortraitImage @PortraitImage end |
#Sex ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def Sex @Sex end |
#ValidDate ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def ValidDate @ValidDate end |
#WarnInfos ⇒ Object
11913 11914 11915 |
# File 'lib/v20181119/models.rb', line 11913 def WarnInfos @WarnInfos end |
Instance Method Details
#deserialize(params) ⇒ Object
11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 |
# File 'lib/v20181119/models.rb', line 11929 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 |