Class: Hangry::DataVocabularyRecipeParser
- Inherits:
-
SchemaOrgRecipeParser
- Object
- RecipeParser
- SchemaOrgRecipeParser
- Hangry::DataVocabularyRecipeParser
- Defined in:
- lib/hangry/data_vocabulary_recipe_parser.rb
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
.ingredient_itemprop ⇒ Object
12 13 14 |
# File 'lib/hangry/data_vocabulary_recipe_parser.rb', line 12 def self.ingredient_itemprop :ingredient end |
.nutrition_selector ⇒ Object
8 9 10 |
# File 'lib/hangry/data_vocabulary_recipe_parser.rb', line 8 def self.nutrition_selector '[itemtype="http://data-vocabulary.org/NutritionInformation"]' end |
.root_selector ⇒ Object
4 5 6 |
# File 'lib/hangry/data_vocabulary_recipe_parser.rb', line 4 def self.root_selector '[itemtype="http://data-vocabulary.org/Recipe"]' end |