Class: Google::Apis::DocsV1::Background
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::Background
- 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
-
#color ⇒ Google::Apis::DocsV1::OptionalColor
A color that can either be fully opaque or fully transparent.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Background
constructor
A new instance of Background.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#color ⇒ Google::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 |