Class: Google::Apis::AdsenseV1_4::AdStyle::Font
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseV1_4::AdStyle::Font
- 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
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
337 338 339 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 337 def initialize(**args) update!(**args) end |
Instance Attribute Details
#family ⇒ String
The family of the font.
Corresponds to the JSON property family
330 331 332 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 330 def family @family end |
#size ⇒ String
The size of the font.
Corresponds to the JSON property size
335 336 337 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 335 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
342 343 344 345 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 342 def update!(**args) @family = args[:family] if args.key?(:family) @size = args[:size] if args.key?(:size) end |