Class: Google::Apis::AdsensehostV4_1::AdStyle::Font
- Inherits:
-
Object
- Object
- Google::Apis::AdsensehostV4_1::AdStyle::Font
- 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 font which is included in the style.
Instance Attribute Summary collapse
-
#family ⇒ String
The family of the font.
-
#size ⇒ String
The size of the font.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Font
constructor
A new instance of Font.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Font
Returns a new instance of Font.
300 301 302 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 300 def initialize(**args) update!(**args) end |
Instance Attribute Details
#family ⇒ String
The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY,
ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
Corresponds to the JSON property family
292 293 294 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 292 def family @family end |
#size ⇒ String
The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE,
ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
Corresponds to the JSON property size
298 299 300 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 298 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
305 306 307 308 |
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 305 def update!(**args) @family = args[:family] if args.key?(:family) @size = args[:size] if args.key?(:size) end |