Class: Fontist::Import::Google::DataSources::Ttf
- Defined in:
- lib/fontist/import/google/data_sources/ttf.rb
Overview
Data source for fetching TTF (TrueType Font) format fonts
This data source fetches fonts from the standard Google Fonts API endpoint, which returns font files in TTF format.
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(api_key:) ⇒ Ttf
constructor
Initialize a new TTF data source.
Methods inherited from Base
#clear_cache, #fetch, #fetch_raw, #parse_response, #url
Constructor Details
#initialize(api_key:) ⇒ Ttf
Initialize a new TTF data source
13 14 15 |
# File 'lib/fontist/import/google/data_sources/ttf.rb', line 13 def initialize(api_key:) super(api_key: api_key, capability: nil) end |