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.
325 326 327 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 325 def initialize(**args) update!(**args) end |
Instance Attribute Details
#family ⇒ String
The family of the font.
Corresponds to the JSON property family
318 319 320 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 318 def family @family end |
#size ⇒ String
The size of the font.
Corresponds to the JSON property size
323 324 325 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 323 def size @size end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
330 331 332 333 |
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 330 def update!(**args) @family = args[:family] if args.key?(:family) @size = args[:size] if args.key?(:size) end |