Class: Google::Apis::WebfontsV1::WebfontList

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/webfonts_v1/classes.rb,
generated/google/apis/webfonts_v1/representations.rb,
generated/google/apis/webfonts_v1/representations.rb

Overview

Response containing the list of fonts currently served by the Google Fonts API.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WebfontList

Returns a new instance of WebfontList.



101
102
103
# File 'generated/google/apis/webfonts_v1/classes.rb', line 101

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

Instance Attribute Details

#itemsArray<Google::Apis::WebfontsV1::Webfont>

The list of fonts currently served by the Google Fonts API. Corresponds to the JSON property items



94
95
96
# File 'generated/google/apis/webfonts_v1/classes.rb', line 94

def items
  @items
end

#kindString

This kind represents a list of webfont objects in the webfonts service. Corresponds to the JSON property kind

Returns:

  • (String)


99
100
101
# File 'generated/google/apis/webfonts_v1/classes.rb', line 99

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



106
107
108
109
# File 'generated/google/apis/webfonts_v1/classes.rb', line 106

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