class Google::Apis::WebfontsV1::Webfont

Metadata describing a family of fonts.

Attributes

category[RW]

The category of the font. Corresponds to the JSON property `category` @return [String]

family[RW]

The name of the font. Corresponds to the JSON property `family` @return [String]

files[RW]

The font files (with all supported scripts) for each one of the available variants, as a key : value map. Corresponds to the JSON property `files` @return [Hash<String,String>]

kind[RW]

This kind represents a webfont object in the webfonts service. Corresponds to the JSON property `kind` @return [String]

last_modified[RW]

The date (format “yyyy-MM-dd”) the font was modified for the last time. Corresponds to the JSON property `lastModified` @return [String]

subsets[RW]

The scripts supported by the font. Corresponds to the JSON property `subsets` @return [Array<String>]

variants[RW]

The available variants for the font. Corresponds to the JSON property `variants` @return [Array<String>]

version[RW]

The font version. Corresponds to the JSON property `version` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/webfonts_v1/classes.rb, line 70
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/webfonts_v1/classes.rb, line 75
def update!(**args)
  @category = args[:category] if args.key?(:category)
  @family = args[:family] if args.key?(:family)
  @files = args[:files] if args.key?(:files)
  @kind = args[:kind] if args.key?(:kind)
  @last_modified = args[:last_modified] if args.key?(:last_modified)
  @subsets = args[:subsets] if args.key?(:subsets)
  @variants = args[:variants] if args.key?(:variants)
  @version = args[:version] if args.key?(:version)
end