class BudgetBytesCli::Recipe
Attributes
name[R]
url[R]
Public Class Methods
new(url = nil, name = nil)
click to toggle source
# File lib/budget_bytes_cli/recipe.rb, line 4 def initialize(url = nil, name = nil) @name = name @url = url end
Public Instance Methods
ingredients()
click to toggle source
# File lib/budget_bytes_cli/recipe.rb, line 9 def ingredients unless @ingredients @ingredients, @instructions = BudgetBytesCli::Scraper.scrape_recipe(@url) end @ingredients end
instructions()
click to toggle source
# File lib/budget_bytes_cli/recipe.rb, line 16 def instructions unless @instructions @ingredients, @instructions = BudgetBytesCli::Scraper.scrape_recipe(@url) end @instructions end