Class: Google::Apis::AdsensehostV4_1::AdStyle::Colors
- Inherits:
-
Object
- Object
- Google::Apis::AdsensehostV4_1::AdStyle::Colors
- 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
-
#background ⇒ String
The color of the ad background.
-
#border ⇒ String
The color of the ad border.
-
#text ⇒ String
The color of the ad text.
-
#title ⇒ String
The color of the ad title.
-
#url ⇒ String
The color of the ad url.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Colors
constructor
A new instance of Colors.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Colors
Returns a new instance of Colors.
270 271 272 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 270 def initialize(**args) update!(**args) end |
Instance Attribute Details
#background ⇒ String
The color of the ad background.
Corresponds to the JSON property background
248 249 250 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 248 def background @background end |
#border ⇒ String
The color of the ad border.
Corresponds to the JSON property border
253 254 255 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 253 def border @border end |
#text ⇒ String
The color of the ad text.
Corresponds to the JSON property text
258 259 260 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 258 def text @text end |
#title ⇒ String
The color of the ad title.
Corresponds to the JSON property title
263 264 265 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 263 def title @title end |
#url ⇒ String
The color of the ad url.
Corresponds to the JSON property url
268 269 270 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 268 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
275 276 277 278 279 280 281 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 275 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 |