Class: Fontist::Import::GoogleImport
- Inherits:
-
Object
- Object
- Fontist::Import::GoogleImport
- Defined in:
- lib/fontist/import/google_import.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(options) ⇒ GoogleImport
constructor
A new instance of GoogleImport.
Constructor Details
#initialize(options) ⇒ GoogleImport
Returns a new instance of GoogleImport.
9 10 11 |
# File 'lib/fontist/import/google_import.rb', line 9 def initialize() @max_count = [:max_count] || Google::DEFAULT_MAX_COUNT end |
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/fontist/import/google_import.rb', line 13 def call fonts = new_fonts create_formulas(fonts) rebuild_index unless fonts.empty? end |