Class: Google::Apis::DocsV1::Color

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/docs_v1/classes.rb,
generated/google/apis/docs_v1/representations.rb,
generated/google/apis/docs_v1/representations.rb

Overview

A solid color.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Color

Returns a new instance of Color.



284
285
286
# File 'generated/google/apis/docs_v1/classes.rb', line 284

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#rgb_colorGoogle::Apis::DocsV1::RgbColor

An RGB color. Corresponds to the JSON property rgbColor



282
283
284
# File 'generated/google/apis/docs_v1/classes.rb', line 282

def rgb_color
  @rgb_color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



289
290
291
# File 'generated/google/apis/docs_v1/classes.rb', line 289

def update!(**args)
  @rgb_color = args[:rgb_color] if args.key?(:rgb_color)
end