Class: TencentCloud::Tiia::V20190529::ColorInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190529/models.rb

Overview

整张图颜色信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#ColorObject

Parameters:

  • Color:

    RGB颜色值(16进制),例如:291A18。

  • Percentage:

    当前颜色标签所占比例。

  • Label:

    颜色标签。蜜柚色,米驼色等。



334
335
336
# File 'lib/v20190529/models.rb', line 334

def Color
  @Color
end

#LabelObject

Parameters:

  • Color:

    RGB颜色值(16进制),例如:291A18。

  • Percentage:

    当前颜色标签所占比例。

  • Label:

    颜色标签。蜜柚色,米驼色等。



334
335
336
# File 'lib/v20190529/models.rb', line 334

def Label
  @Label
end

#PercentageObject

Parameters:

  • Color:

    RGB颜色值(16进制),例如:291A18。

  • Percentage:

    当前颜色标签所占比例。

  • Label:

    颜色标签。蜜柚色,米驼色等。



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