Class: TencentCloud::Trp::V20210515::PackSpec
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Trp::V20210515::PackSpec
- Defined in:
- lib/v20210515/models.rb
Overview
层级码配置
Instance Attribute Summary collapse
- #Amount ⇒ Object
- #CodeParts ⇒ Object
- #CustomId ⇒ Object
- #Level ⇒ Object
- #Rate ⇒ Object
- #SceneCode ⇒ Object
- #Unit ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(level = nil, rate = nil, amount = nil, customid = nil, codeparts = nil, unit = nil, scenecode = nil) ⇒ PackSpec
constructor
A new instance of PackSpec.
Constructor Details
#initialize(level = nil, rate = nil, amount = nil, customid = nil, codeparts = nil, unit = nil, scenecode = nil) ⇒ PackSpec
Returns a new instance of PackSpec.
3770 3771 3772 3773 3774 3775 3776 3777 3778 |
# File 'lib/v20210515/models.rb', line 3770 def initialize(level=nil, rate=nil, amount=nil, customid=nil, codeparts=nil, unit=nil, scenecode=nil) @Level = level @Rate = rate @Amount = amount @CustomId = customid @CodeParts = codeparts @Unit = unit @SceneCode = scenecode end |
Instance Attribute Details
#Amount ⇒ Object
3768 3769 3770 |
# File 'lib/v20210515/models.rb', line 3768 def Amount @Amount end |
#CodeParts ⇒ Object
3768 3769 3770 |
# File 'lib/v20210515/models.rb', line 3768 def CodeParts @CodeParts end |
#CustomId ⇒ Object
3768 3769 3770 |
# File 'lib/v20210515/models.rb', line 3768 def CustomId @CustomId end |
#Level ⇒ Object
3768 3769 3770 |
# File 'lib/v20210515/models.rb', line 3768 def Level @Level end |
#Rate ⇒ Object
3768 3769 3770 |
# File 'lib/v20210515/models.rb', line 3768 def Rate @Rate end |
#SceneCode ⇒ Object
3768 3769 3770 |
# File 'lib/v20210515/models.rb', line 3768 def SceneCode @SceneCode end |
#Unit ⇒ Object
3768 3769 3770 |
# File 'lib/v20210515/models.rb', line 3768 def Unit @Unit end |
Instance Method Details
#deserialize(params) ⇒ Object
3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 |
# File 'lib/v20210515/models.rb', line 3780 def deserialize(params) @Level = params['Level'] @Rate = params['Rate'] @Amount = params['Amount'] @CustomId = params['CustomId'] unless params['CodeParts'].nil? @CodeParts = [] params['CodeParts'].each do |i| codepart_tmp = CodePart.new codepart_tmp.deserialize(i) @CodeParts << codepart_tmp end end @Unit = params['Unit'] @SceneCode = params['SceneCode'] end |