Class: Google::Apis::AdsenseV1_4::AdStyle::Font

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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

#familyString

The family of the font. Corresponds to the JSON property family

Returns:

  • (String)


318
319
320
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 318

def family
  @family
end

#sizeString

The size of the font. Corresponds to the JSON property size

Returns:

  • (String)


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