Class: Google::Apis::DriveV3::About::DriveTheme

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DriveTheme

Returns a new instance of DriveTheme.



141
142
143
# File 'lib/google/apis/drive_v3/classes.rb', line 141

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)


129
130
131
# File 'lib/google/apis/drive_v3/classes.rb', line 129

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)


134
135
136
# File 'lib/google/apis/drive_v3/classes.rb', line 134

def color_rgb
  @color_rgb
end

#idString

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

Returns:

  • (String)


139
140
141
# File 'lib/google/apis/drive_v3/classes.rb', line 139

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



146
147
148
149
150
# File 'lib/google/apis/drive_v3/classes.rb', line 146

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