Class: Fontist::Import::Google::DataSources::Ttf

Inherits:
Base
  • Object
show all
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

Base::BASE_URL

Instance Attribute Summary

Attributes inherited from Base

#api_key, #capability

Instance Method Summary collapse

Methods inherited from Base

#clear_cache, #fetch, #fetch_raw, #parse_response, #url

Constructor Details

#initialize(api_key:) ⇒ Ttf

Initialize a new TTF data source

Parameters:

  • api_key (String)

    Google Fonts API key



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