Class: Google::Apis::AdsenseV1_4::AdStyle::Colors

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

Overview

The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Colors

Returns a new instance of Colors.


309
310
311
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 309

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

Instance Attribute Details

#backgroundString

The color of the ad background. Corresponds to the JSON property background

Returns:

  • (String)

287
288
289
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 287

def background
  @background
end

#borderString

The color of the ad border. Corresponds to the JSON property border

Returns:

  • (String)

292
293
294
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 292

def border
  @border
end

#textString

The color of the ad text. Corresponds to the JSON property text

Returns:

  • (String)

297
298
299
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 297

def text
  @text
end

#titleString

The color of the ad title. Corresponds to the JSON property title

Returns:

  • (String)

302
303
304
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 302

def title
  @title
end

#urlString

The color of the ad url. Corresponds to the JSON property url

Returns:

  • (String)

307
308
309
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 307

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


314
315
316
317
318
319
320
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 314

def update!(**args)
  @background = args[:background] if args.key?(:background)
  @border = args[:border] if args.key?(:border)
  @text = args[:text] if args.key?(:text)
  @title = args[:title] if args.key?(:title)
  @url = args[:url] if args.key?(:url)
end