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.



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

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)


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

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)


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

def size
  @size
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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