Class: Google::Apis::AdsensehostV4_1::AdStyle
- Inherits:
-
Object
- Object
- Google::Apis::AdsensehostV4_1::AdStyle
- 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
Defined Under Namespace
Instance Attribute Summary collapse
-
#colors ⇒ Google::Apis::AdsensehostV4_1::AdStyle::Colors
The colors included in the style.
-
#corners ⇒ String
The style of the corners in the ad (deprecated: never populated, ignored).
-
#font ⇒ Google::Apis::AdsensehostV4_1::AdStyle::Font
The font which is included in the style.
-
#kind ⇒ String
Kind this is, in this case adsensehost#adStyle.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AdStyle
constructor
A new instance of AdStyle.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AdStyle
Returns a new instance of AdStyle.
227 228 229 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 227 def initialize(**args) update!(**args) end |
Instance Attribute Details
#colors ⇒ Google::Apis::AdsensehostV4_1::AdStyle::Colors
The colors 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
210 211 212 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 210 def colors @colors end |
#corners ⇒ String
The style of the corners in the ad (deprecated: never populated, ignored).
Corresponds to the JSON property corners
215 216 217 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 215 def corners @corners end |
#font ⇒ Google::Apis::AdsensehostV4_1::AdStyle::Font
The font which is included in the style.
Corresponds to the JSON property font
220 221 222 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 220 def font @font end |
#kind ⇒ String
Kind this is, in this case adsensehost#adStyle.
Corresponds to the JSON property kind
225 226 227 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 225 def kind @kind end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
232 233 234 235 236 237 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 232 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 |