Class: TencentCloud::Ocr::V20181119::EduPaperOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::EduPaperOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
EduPaperOCR返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(edupaperinfos = nil, angle = nil, questionblockinfos = nil, requestid = nil) ⇒ EduPaperOCRResponse
constructor
A new instance of EduPaperOCRResponse.
Constructor Details
#initialize(edupaperinfos = nil, angle = nil, questionblockinfos = nil, requestid = nil) ⇒ EduPaperOCRResponse
Returns a new instance of EduPaperOCRResponse.
2031 2032 2033 2034 2035 2036 |
# File 'lib/v20181119/models.rb', line 2031 def initialize(edupaperinfos=nil, angle=nil, questionblockinfos=nil, requestid=nil) @EduPaperInfos = edupaperinfos @Angle = angle @QuestionBlockInfos = questionblockinfos @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
2029 2030 2031 |
# File 'lib/v20181119/models.rb', line 2029 def Angle @Angle end |
#EduPaperInfos ⇒ Object
2029 2030 2031 |
# File 'lib/v20181119/models.rb', line 2029 def EduPaperInfos @EduPaperInfos end |
#QuestionBlockInfos ⇒ Object
2029 2030 2031 |
# File 'lib/v20181119/models.rb', line 2029 def QuestionBlockInfos @QuestionBlockInfos end |
#RequestId ⇒ Object
2029 2030 2031 |
# File 'lib/v20181119/models.rb', line 2029 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 |
# File 'lib/v20181119/models.rb', line 2038 def deserialize(params) unless params['EduPaperInfos'].nil? @EduPaperInfos = [] params['EduPaperInfos'].each do |i| textedupaper_tmp = TextEduPaper.new textedupaper_tmp.deserialize(i) @EduPaperInfos << textedupaper_tmp end end @Angle = params['Angle'] unless params['QuestionBlockInfos'].nil? @QuestionBlockInfos = [] params['QuestionBlockInfos'].each do |i| questionblockobj_tmp = QuestionBlockObj.new questionblockobj_tmp.deserialize(i) @QuestionBlockInfos << questionblockobj_tmp end end @RequestId = params['RequestId'] end |