Class: TencentCloud::Cdb::V20170320::Rule
- Inherits:
-
TencentCloud::Common::AbstractModel
- Object
- TencentCloud::Common::AbstractModel
- TencentCloud::Cdb::V20170320::Rule
- Defined in:
- lib/v20170320/models.rb
Overview
权重分配规则
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(lessthan = nil, weight = nil) ⇒ Rule
constructor
A new instance of Rule.
Constructor Details
#initialize(lessthan = nil, weight = nil) ⇒ Rule
Returns a new instance of Rule.
13264 13265 13266 13267 |
# File 'lib/v20170320/models.rb', line 13264 def initialize(lessthan=nil, weight=nil) @LessThan = lessthan @Weight = weight end |
Instance Attribute Details
#LessThan ⇒ Object
13262 13263 13264 |
# File 'lib/v20170320/models.rb', line 13262 def LessThan @LessThan end |
#Weight ⇒ Object
13262 13263 13264 |
# File 'lib/v20170320/models.rb', line 13262 def Weight @Weight end |
Instance Method Details
#deserialize(params) ⇒ Object
13269 13270 13271 13272 |
# File 'lib/v20170320/models.rb', line 13269 def deserialize(params) @LessThan = params['LessThan'] @Weight = params['Weight'] end |