Class: TencentCloud::Tem::V20201221::Pair
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tem::V20201221::Pair
- Defined in:
- lib/v20201221/models.rb
Overview
键值对
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(key = nil, value = nil) ⇒ Pair
constructor
A new instance of Pair.
Constructor Details
#initialize(key = nil, value = nil) ⇒ Pair
Returns a new instance of Pair.
1635 1636 1637 1638 |
# File 'lib/v20201221/models.rb', line 1635 def initialize(key=nil, value=nil) @Key = key @Value = value end |
Instance Attribute Details
#Key ⇒ Object
1633 1634 1635 |
# File 'lib/v20201221/models.rb', line 1633 def Key @Key end |
#Value ⇒ Object
1633 1634 1635 |
# File 'lib/v20201221/models.rb', line 1633 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
1640 1641 1642 1643 |
# File 'lib/v20201221/models.rb', line 1640 def deserialize(params) @Key = params['Key'] @Value = params['Value'] end |