Class: Fontist::Import::GoogleImport

Inherits:
Object
  • Object
show all
Defined in:
lib/fontist/import/google_import.rb

Instance Method Summary collapse

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(options)
  @max_count = options[:max_count] || Google::DEFAULT_MAX_COUNT
end

Instance Method Details

#callObject



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