Class: Fontist::Import::Google::Api
- Inherits:
 - 
      Object
      
        
- Object
 - Fontist::Import::Google::Api
 
 
- Defined in:
 - lib/fontist/import/google/api.rb
 
Class Method Summary collapse
Class Method Details
.api_key ⇒ Object
      18 19 20  | 
    
      # File 'lib/fontist/import/google/api.rb', line 18 def api_key Fontist.google_fonts_key end  | 
  
.db ⇒ Object
      10 11 12  | 
    
      # File 'lib/fontist/import/google/api.rb', line 10 def db @db ||= JSON.parse(Net::HTTP.get(URI(url))) end  | 
  
.items ⇒ Object
      6 7 8  | 
    
      # File 'lib/fontist/import/google/api.rb', line 6 def items db["items"] end  | 
  
.url ⇒ Object
      14 15 16  | 
    
      # File 'lib/fontist/import/google/api.rb', line 14 def url "https://www.googleapis.com/webfonts/v1/webfonts?key=#{api_key}" end  |