Class: TencentCloud::Tione::V20211111::NumOrPercent

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

Overview

用于表示百分比或数量

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, value = nil) ⇒ NumOrPercent

Returns a new instance of NumOrPercent.



6836
6837
6838
6839
# File 'lib/v20211111/models.rb', line 6836

def initialize(type=nil, value=nil)
  @Type = type
  @Value = value
end

Instance Attribute Details

#TypeObject

Parameters:

  • Type:

    Num,Percent ,分别表示数量和百分比,默认为 Num

  • Value:

    数值



6834
6835
6836
# File 'lib/v20211111/models.rb', line 6834

def Type
  @Type
end

#ValueObject

Parameters:

  • Type:

    Num,Percent ,分别表示数量和百分比,默认为 Num

  • Value:

    数值



6834
6835
6836
# File 'lib/v20211111/models.rb', line 6834

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



6841
6842
6843
6844
# File 'lib/v20211111/models.rb', line 6841

def deserialize(params)
  @Type = params['Type']
  @Value = params['Value']
end