Class: TencentCloud::Billing::V20180709::ConsumptionProjectSummaryDataItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Billing::V20180709::ConsumptionProjectSummaryDataItem
- Defined in:
- lib/v20180709/models.rb
Overview
消耗按项目汇总详情
Instance Attribute Summary collapse
- #Business ⇒ Object
- #CashPayAmount ⇒ Object
- #IncentivePayAmount ⇒ Object
- #ProjectId ⇒ Object
- #ProjectName ⇒ Object
- #RealTotalCost ⇒ Object
- #TransferPayAmount ⇒ Object
- #Trend ⇒ Object
- #VoucherPayAmount ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(projectid = nil, projectname = nil, realtotalcost = nil, trend = nil, business = nil, cashpayamount = nil, incentivepayamount = nil, voucherpayamount = nil, transferpayamount = nil) ⇒ ConsumptionProjectSummaryDataItem
constructor
A new instance of ConsumptionProjectSummaryDataItem.
Constructor Details
#initialize(projectid = nil, projectname = nil, realtotalcost = nil, trend = nil, business = nil, cashpayamount = nil, incentivepayamount = nil, voucherpayamount = nil, transferpayamount = nil) ⇒ ConsumptionProjectSummaryDataItem
Returns a new instance of ConsumptionProjectSummaryDataItem.
4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 |
# File 'lib/v20180709/models.rb', line 4237 def initialize(projectid=nil, projectname=nil, realtotalcost=nil, trend=nil, business=nil, cashpayamount=nil, incentivepayamount=nil, voucherpayamount=nil, transferpayamount=nil) @ProjectId = projectid @ProjectName = projectname @RealTotalCost = realtotalcost @Trend = trend @Business = business @CashPayAmount = cashpayamount @IncentivePayAmount = incentivepayamount @VoucherPayAmount = voucherpayamount @TransferPayAmount = transferpayamount end |
Instance Attribute Details
#Business ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def Business @Business end |
#CashPayAmount ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def CashPayAmount @CashPayAmount end |
#IncentivePayAmount ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def IncentivePayAmount @IncentivePayAmount end |
#ProjectId ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def ProjectId @ProjectId end |
#ProjectName ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def ProjectName @ProjectName end |
#RealTotalCost ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def RealTotalCost @RealTotalCost end |
#TransferPayAmount ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def TransferPayAmount @TransferPayAmount end |
#Trend ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def Trend @Trend end |
#VoucherPayAmount ⇒ Object
4235 4236 4237 |
# File 'lib/v20180709/models.rb', line 4235 def VoucherPayAmount @VoucherPayAmount end |
Instance Method Details
#deserialize(params) ⇒ Object
4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 |
# File 'lib/v20180709/models.rb', line 4249 def deserialize(params) @ProjectId = params['ProjectId'] @ProjectName = params['ProjectName'] @RealTotalCost = params['RealTotalCost'] unless params['Trend'].nil? @Trend = ConsumptionSummaryTrend.new @Trend.deserialize(params['Trend']) end unless params['Business'].nil? @Business = [] params['Business'].each do |i| consumptionbusinesssummarydataitem_tmp = ConsumptionBusinessSummaryDataItem.new consumptionbusinesssummarydataitem_tmp.deserialize(i) @Business << consumptionbusinesssummarydataitem_tmp end end @CashPayAmount = params['CashPayAmount'] @IncentivePayAmount = params['IncentivePayAmount'] @VoucherPayAmount = params['VoucherPayAmount'] @TransferPayAmount = params['TransferPayAmount'] end |