class Google::Apis::WebfontsV1::Webfont
Metadata describing a family of fonts.
Attributes
The category of the font. Corresponds to the JSON property `category` @return [String]
The name of the font. Corresponds to the JSON property `family` @return [String]
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>]
This kind represents a webfont object in the webfonts service. Corresponds to the JSON property `kind` @return [String]
The date (format “yyyy-MM-dd”) the font was modified for the last time. Corresponds to the JSON property `lastModified` @return [String]
The scripts supported by the font. Corresponds to the JSON property `subsets` @return [Array<String>]
The available variants for the font. Corresponds to the JSON property `variants` @return [Array<String>]
The font version. Corresponds to the JSON property `version` @return [String]
Public Class Methods
# File lib/google/apis/webfonts_v1/classes.rb, line 70 def initialize(**args) update!(**args) end
Public Instance Methods
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