Class: Hangry::HRecipeParser
- Inherits:
-
RecipeParser
- Object
- RecipeParser
- Hangry::HRecipeParser
- Defined in:
- lib/hangry/hrecipe_parser.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from RecipeParser
#nokogiri_doc, #nutrition_ast, #recipe, #recipe_ast, #recipe_html
Class Method Summary collapse
Methods inherited from RecipeParser
can_parse?, canonical_url_matches_domain?, #initialize, #parse
Constructor Details
This class inherits a constructor from Hangry::RecipeParser
Class Method Details
.nutrition_selector ⇒ Object
4 5 6 |
# File 'lib/hangry/hrecipe_parser.rb', line 4 def self.nutrition_selector '.nutrition' end |
.root_selector ⇒ Object
8 9 10 |
# File 'lib/hangry/hrecipe_parser.rb', line 8 def self.root_selector '.hrecipe, .hRecipe' end |