Class: TencentCloud::Ocr::V20181119::ElectronicTollSummary
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::ElectronicTollSummary
- Defined in:
- lib/v20181119/models.rb
Overview
其他发票
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(title = nil, total = nil, items = nil, tableitems = nil, date = nil) ⇒ ElectronicTollSummary
constructor
A new instance of ElectronicTollSummary.
Constructor Details
#initialize(title = nil, total = nil, items = nil, tableitems = nil, date = nil) ⇒ ElectronicTollSummary
Returns a new instance of ElectronicTollSummary.
2424 2425 2426 2427 2428 2429 2430 |
# File 'lib/v20181119/models.rb', line 2424 def initialize(title=nil, total=nil, items=nil, tableitems=nil, date=nil) @Title = title @Total = total @Items = items @TableItems = tableitems @Date = date end |
Instance Attribute Details
#Date ⇒ Object
2422 2423 2424 |
# File 'lib/v20181119/models.rb', line 2422 def Date @Date end |
#Items ⇒ Object
2422 2423 2424 |
# File 'lib/v20181119/models.rb', line 2422 def Items @Items end |
#TableItems ⇒ Object
2422 2423 2424 |
# File 'lib/v20181119/models.rb', line 2422 def TableItems @TableItems end |
#Title ⇒ Object
2422 2423 2424 |
# File 'lib/v20181119/models.rb', line 2422 def Title @Title end |
#Total ⇒ Object
2422 2423 2424 |
# File 'lib/v20181119/models.rb', line 2422 def Total @Total end |
Instance Method Details
#deserialize(params) ⇒ Object
2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 |
# File 'lib/v20181119/models.rb', line 2432 def deserialize(params) @Title = params['Title'] @Total = params['Total'] unless params['Items'].nil? @Items = [] params['Items'].each do |i| electronictollsummaryitem_tmp = ElectronicTollSummaryItem.new electronictollsummaryitem_tmp.deserialize(i) @Items << electronictollsummaryitem_tmp end end unless params['TableItems'].nil? @TableItems = [] params['TableItems'].each do |i| electronictollsummarylist_tmp = ElectronicTollSummaryList.new electronictollsummarylist_tmp.deserialize(i) @TableItems << electronictollsummarylist_tmp end end @Date = params['Date'] end |