Class: TencentCloud::Billing::V20180709::AllocationRulesSummary
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::AllocationRulesSummary
- Defined in:
- lib/v20180709/models.rb
Overview
公摊规则列表
Instance Attribute Summary collapse
-
#Name ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#RatioDetail ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#RuleDetail ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
-
#Type ⇒ Object
1 - 自定义分摊占比 2 - 等比分摊 3 - 按占比分摊.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, type = nil, ruledetail = nil, ratiodetail = nil) ⇒ AllocationRulesSummary
constructor
A new instance of AllocationRulesSummary.
Constructor Details
#initialize(name = nil, type = nil, ruledetail = nil, ratiodetail = nil) ⇒ AllocationRulesSummary
Returns a new instance of AllocationRulesSummary.
907 908 909 910 911 912 |
# File 'lib/v20180709/models.rb', line 907 def initialize(name=nil, type=nil, ruledetail=nil, ratiodetail=nil) @Name = name @Type = type @RuleDetail = ruledetail @RatioDetail = ratiodetail end |
Instance Attribute Details
#Name ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
905 906 907 |
# File 'lib/v20180709/models.rb', line 905 def Name @Name end |
#RatioDetail ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
905 906 907 |
# File 'lib/v20180709/models.rb', line 905 def RatioDetail @RatioDetail end |
#RuleDetail ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
905 906 907 |
# File 'lib/v20180709/models.rb', line 905 def RuleDetail @RuleDetail end |
#Type ⇒ Object
1 - 自定义分摊占比2 - 等比分摊3 - 按占比分摊
905 906 907 |
# File 'lib/v20180709/models.rb', line 905 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 |
# File 'lib/v20180709/models.rb', line 914 def deserialize(params) @Name = params['Name'] @Type = params['Type'] unless params['RuleDetail'].nil? @RuleDetail = AllocationRuleExpression.new @RuleDetail.deserialize(params['RuleDetail']) end unless params['RatioDetail'].nil? @RatioDetail = [] params['RatioDetail'].each do |i| allocationrationexpression_tmp = AllocationRationExpression.new allocationrationexpression_tmp.deserialize(i) @RatioDetail << allocationrationexpression_tmp end end end |