Class: Google::Apis::DocsV1::Shading

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

The shading of a paragraph.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Shading

Returns a new instance of Shading.



4611
4612
4613
# File 'generated/google/apis/docs_v1/classes.rb', line 4611

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

Instance Attribute Details

#background_colorGoogle::Apis::DocsV1::OptionalColor

A color that can either be fully opaque or fully transparent. Corresponds to the JSON property backgroundColor



4609
4610
4611
# File 'generated/google/apis/docs_v1/classes.rb', line 4609

def background_color
  @background_color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4616
4617
4618
# File 'generated/google/apis/docs_v1/classes.rb', line 4616

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