Class: Lettuce::AllRecipes

Inherits:
Recipe
  • Object
show all
Defined in:
lib/lettuce/all_recipes.rb

Class Method Summary collapse

Methods inherited from Recipe

#author, #duration, #ingredients, #initialize, #instructions, #nutrition, parse, parse_all, #photo, #published, root, #summary, #tags, #title, #yield

Constructor Details

This class inherits a constructor from Lettuce::Recipe

Class Method Details

.can_parse?(doc, url) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/lettuce/all_recipes.rb', line 5

def can_parse?(doc, url)
  URI(url).host == "allrecipes.com"
end