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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/webfonts_v1/classes.rb,
lib/google/apis/webfonts_v1/representations.rb,
lib/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.



151
152
153
# File 'lib/google/apis/webfonts_v1/classes.rb', line 151

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



144
145
146
# File 'lib/google/apis/webfonts_v1/classes.rb', line 144

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)


149
150
151
# File 'lib/google/apis/webfonts_v1/classes.rb', line 149

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



156
157
158
159
# File 'lib/google/apis/webfonts_v1/classes.rb', line 156

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