Class: Google::Apis::DriveV2::About::DriveTheme

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DriveTheme

Returns a new instance of DriveTheme.



288
289
290
# File 'generated/google/apis/drive_v2/classes.rb', line 288

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

Instance Attribute Details

A link to this theme's background image. Corresponds to the JSON property backgroundImageLink

Returns:

  • (String)


276
277
278
# File 'generated/google/apis/drive_v2/classes.rb', line 276

def background_image_link
  @background_image_link
end

#color_rgbString

The color of this theme as an RGB hex string. Corresponds to the JSON property colorRgb

Returns:

  • (String)


281
282
283
# File 'generated/google/apis/drive_v2/classes.rb', line 281

def color_rgb
  @color_rgb
end

#idString

The ID of the theme. Corresponds to the JSON property id

Returns:

  • (String)


286
287
288
# File 'generated/google/apis/drive_v2/classes.rb', line 286

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



293
294
295
296
297
# File 'generated/google/apis/drive_v2/classes.rb', line 293

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