Class: Google::Apis::DriveV2::About::DriveTheme
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::About::DriveTheme
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb
Instance Attribute Summary collapse
-
#background_image_link ⇒ String
A link to this theme's background image.
-
#color_rgb ⇒ String
The color of this theme as an RGB hex string.
-
#id ⇒ String
The ID of the theme.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DriveTheme
constructor
A new instance of DriveTheme.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ DriveTheme
Returns a new instance of DriveTheme
287 288 289 |
# File 'generated/google/apis/drive_v2/classes.rb', line 287 def initialize(**args) update!(**args) end |
Instance Attribute Details
#background_image_link ⇒ String
A link to this theme's background image.
Corresponds to the JSON property backgroundImageLink
275 276 277 |
# File 'generated/google/apis/drive_v2/classes.rb', line 275 def background_image_link @background_image_link end |
#color_rgb ⇒ String
The color of this theme as an RGB hex string.
Corresponds to the JSON property colorRgb
280 281 282 |
# File 'generated/google/apis/drive_v2/classes.rb', line 280 def color_rgb @color_rgb end |
#id ⇒ String
The ID of the theme.
Corresponds to the JSON property id
285 286 287 |
# File 'generated/google/apis/drive_v2/classes.rb', line 285 def id @id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
292 293 294 295 296 |
# File 'generated/google/apis/drive_v2/classes.rb', line 292 def update!(**args) @background_image_link = args[:background_image_link] if args.key?(:background_image_link) @color_rgb = args[:color_rgb] if args.key?(:color_rgb) @id = args[:id] if args.key?(:id) end |