Class: Google::Apis::WebfontsV1::WebfontList
- Inherits:
-
Object
- Object
- Google::Apis::WebfontsV1::WebfontList
- 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
-
#items ⇒ Array<Google::Apis::WebfontsV1::Webfont>
The list of fonts currently served by the Google Fonts API.
-
#kind ⇒ String
This kind represents a list of webfont objects in the webfonts service.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WebfontList
constructor
A new instance of WebfontList.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#items ⇒ Array<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 |
#kind ⇒ String
This kind represents a list of webfont objects in the webfonts service.
Corresponds to the JSON property kind
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 |