Class: Google::Apis::DocsV1::Background

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

Represents the background of a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Background

Returns a new instance of Background.



89
90
91
# File 'generated/google/apis/docs_v1/classes.rb', line 89

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

Instance Attribute Details

#colorGoogle::Apis::DocsV1::OptionalColor

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



87
88
89
# File 'generated/google/apis/docs_v1/classes.rb', line 87

def color
  @color
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



94
95
96
# File 'generated/google/apis/docs_v1/classes.rb', line 94

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