Class: TencentCloud::Organization::V20210331::OrgProductFinancial

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210331/models.rb

Overview

组织产品财务信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productname = nil, productcode = nil, totalcost = nil, ratio = nil) ⇒ OrgProductFinancial

Returns a new instance of OrgProductFinancial.



6351
6352
6353
6354
6355
6356
# File 'lib/v20210331/models.rb', line 6351

def initialize(productname=nil, productcode=nil, totalcost=nil, ratio=nil)
  @ProductName = productname
  @ProductCode = productcode
  @TotalCost = totalcost
  @Ratio = ratio
end

Instance Attribute Details

#ProductCodeObject

Parameters:

  • ProductName:

    产品Code。

  • ProductCode:

    产品名。

  • TotalCost:

    产品消耗,单位:元。

  • Ratio:

    占比%。



6349
6350
6351
# File 'lib/v20210331/models.rb', line 6349

def ProductCode
  @ProductCode
end

#ProductNameObject

Parameters:

  • ProductName:

    产品Code。

  • ProductCode:

    产品名。

  • TotalCost:

    产品消耗,单位:元。

  • Ratio:

    占比%。



6349
6350
6351
# File 'lib/v20210331/models.rb', line 6349

def ProductName
  @ProductName
end

#RatioObject

Parameters:

  • ProductName:

    产品Code。

  • ProductCode:

    产品名。

  • TotalCost:

    产品消耗,单位:元。

  • Ratio:

    占比%。



6349
6350
6351
# File 'lib/v20210331/models.rb', line 6349

def Ratio
  @Ratio
end

#TotalCostObject

Parameters:

  • ProductName:

    产品Code。

  • ProductCode:

    产品名。

  • TotalCost:

    产品消耗,单位:元。

  • Ratio:

    占比%。



6349
6350
6351
# File 'lib/v20210331/models.rb', line 6349

def TotalCost
  @TotalCost
end

Instance Method Details

#deserialize(params) ⇒ Object



6358
6359
6360
6361
6362
6363
# File 'lib/v20210331/models.rb', line 6358

def deserialize(params)
  @ProductName = params['ProductName']
  @ProductCode = params['ProductCode']
  @TotalCost = params['TotalCost']
  @Ratio = params['Ratio']
end