Class: Google::Apis::AdsenseV1_4::AdStyle
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV1_4::AdStyle
- 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
Defined Under Namespace
Instance Attribute Summary collapse
-
#colors ⇒ Google::Apis::AdsenseV1_4::AdStyle::Colors
The colors which are included in the style.
-
#corners ⇒ String
The style of the corners in the ad (deprecated: never populated, ignored).
-
#font ⇒ Google::Apis::AdsenseV1_4::AdStyle::Font
The font which is included in the style.
-
#kind ⇒ String
Kind this is, in this case adsense#adStyle.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdStyle
constructor
A new instance of AdStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AdStyle
Returns a new instance of AdStyle
266 267 268 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#colors ⇒ Google::Apis::AdsenseV1_4::AdStyle::Colors
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.
Corresponds to the JSON property colors
249 250 251 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 249 def colors @colors end |
#corners ⇒ String
The style of the corners in the ad (deprecated: never populated, ignored).
Corresponds to the JSON property corners
254 255 256 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 254 def corners @corners end |
#font ⇒ Google::Apis::AdsenseV1_4::AdStyle::Font
The font which is included in the style.
Corresponds to the JSON property font
259 260 261 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 259 def font @font end |
#kind ⇒ String
Kind this is, in this case adsense#adStyle.
Corresponds to the JSON property kind
264 265 266 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 264 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
271 272 273 274 275 276 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 271 def update!(**args) @colors = args[:colors] if args.key?(:colors) @corners = args[:corners] if args.key?(:corners) @font = args[:font] if args.key?(:font) @kind = args[:kind] if args.key?(:kind) end |