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



337
338
339
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 337

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#familyString

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

Returns:

  • (String)


330
331
332
# File 'generated/google/apis/adsense_v1_4/classes.rb', line 330

def family
  @family
end

#sizeString

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

Returns:

  • (String)


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