Class: Google::Apis::AdsensehostV4_1::AdStyle::Font

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

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



299
300
301
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 299

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

Instance Attribute Details

#familyString

The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA. Corresponds to the JSON property family

Returns:

  • (String)


291
292
293
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 291

def family
  @family
end

#sizeString

The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE. Corresponds to the JSON property size

Returns:

  • (String)


297
298
299
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 297

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



304
305
306
307
# File 'generated/google/apis/adsensehost_v4_1/classes.rb', line 304

def update!(**args)
  @family = args[:family] if args.key?(:family)
  @size = args[:size] if args.key?(:size)
end