Class: TencentCloud::Ocr::V20181119::CustomsDeclaration
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::CustomsDeclaration
- Defined in:
- lib/v20181119/models.rb
Overview
海关进/出口货物报关单
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(title = nil, content = nil) ⇒ CustomsDeclaration
constructor
A new instance of CustomsDeclaration.
Constructor Details
#initialize(title = nil, content = nil) ⇒ CustomsDeclaration
Returns a new instance of CustomsDeclaration.
1586 1587 1588 1589 |
# File 'lib/v20181119/models.rb', line 1586 def initialize(title=nil, content=nil) @Title = title @Content = content end |
Instance Attribute Details
#Content ⇒ Object
1584 1585 1586 |
# File 'lib/v20181119/models.rb', line 1584 def Content @Content end |
#Title ⇒ Object
1584 1585 1586 |
# File 'lib/v20181119/models.rb', line 1584 def Title @Title end |
Instance Method Details
#deserialize(params) ⇒ Object
1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 |
# File 'lib/v20181119/models.rb', line 1591 def deserialize(params) @Title = params['Title'] unless params['Content'].nil? @Content = [] params['Content'].each do |i| otherinvoiceitem_tmp = OtherInvoiceItem.new otherinvoiceitem_tmp.deserialize(i) @Content << otherinvoiceitem_tmp end end end |