Class: Google::Apis::AdsensehostV4_1::AdStyle::Colors

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

Overview

The colors 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

Constructor Details

#initialize(**args) ⇒ Colors

Returns a new instance of Colors.



269
270
271
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 269

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

Instance Attribute Details

#backgroundString

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

Returns:

  • (String)


247
248
249
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 247

def background
  @background
end

#borderString

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

Returns:

  • (String)


252
253
254
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 252

def border
  @border
end

#textString

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

Returns:

  • (String)


257
258
259
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 257

def text
  @text
end

#titleString

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

Returns:

  • (String)


262
263
264
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 262

def title
  @title
end

#urlString

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

Returns:

  • (String)


267
268
269
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 267

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



274
275
276
277
278
279
280
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 274

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