Class: TencentCloud::Hunyuan::V20230901::Reference
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Hunyuan::V20230901::Reference
- Defined in:
- lib/v20230901/models.rb
Overview
翻译对话参考示例
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, text = nil, translation = nil) ⇒ Reference
constructor
A new instance of Reference.
Constructor Details
#initialize(type = nil, text = nil, translation = nil) ⇒ Reference
Returns a new instance of Reference.
2115 2116 2117 2118 2119 |
# File 'lib/v20230901/models.rb', line 2115 def initialize(type=nil, text=nil, translation=nil) @Type = type @Text = text @Translation = translation end |
Instance Attribute Details
#Text ⇒ Object
2113 2114 2115 |
# File 'lib/v20230901/models.rb', line 2113 def Text @Text end |
#Translation ⇒ Object
2113 2114 2115 |
# File 'lib/v20230901/models.rb', line 2113 def Translation @Translation end |
#Type ⇒ Object
2113 2114 2115 |
# File 'lib/v20230901/models.rb', line 2113 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
2121 2122 2123 2124 2125 |
# File 'lib/v20230901/models.rb', line 2121 def deserialize(params) @Type = params['Type'] @Text = params['Text'] @Translation = params['Translation'] end |