Class: TencentCloud::Tione::V20211111::NumOrPercent
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tione::V20211111::NumOrPercent
- Defined in:
- lib/v20211111/models.rb
Overview
用于表示百分比或数量
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, value = nil) ⇒ NumOrPercent
constructor
A new instance of NumOrPercent.
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
#Type ⇒ Object
6834 6835 6836 |
# File 'lib/v20211111/models.rb', line 6834 def Type @Type end |
#Value ⇒ Object
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 |