Class: TencentCloud::Tiia::V20190529::ColorInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tiia::V20190529::ColorInfo
- Defined in:
- lib/v20190529/models.rb
Overview
整张图颜色信息。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(color = nil, percentage = nil, label = nil) ⇒ ColorInfo
constructor
A new instance of ColorInfo.
Constructor Details
#initialize(color = nil, percentage = nil, label = nil) ⇒ ColorInfo
Returns a new instance of ColorInfo.
336 337 338 339 340 |
# File 'lib/v20190529/models.rb', line 336 def initialize(color=nil, percentage=nil, label=nil) @Color = color @Percentage = percentage @Label = label end |
Instance Attribute Details
#Color ⇒ Object
334 335 336 |
# File 'lib/v20190529/models.rb', line 334 def Color @Color end |
#Label ⇒ Object
334 335 336 |
# File 'lib/v20190529/models.rb', line 334 def Label @Label end |
#Percentage ⇒ Object
334 335 336 |
# File 'lib/v20190529/models.rb', line 334 def Percentage @Percentage end |
Instance Method Details
#deserialize(params) ⇒ Object
342 343 344 345 346 |
# File 'lib/v20190529/models.rb', line 342 def deserialize(params) @Color = params['Color'] @Percentage = params['Percentage'] @Label = params['Label'] end |