class SeriousEats::Recipe
Attributes
active_time[RW]
category[RW]
description[RW]
directions[RW]
ingredients[RW]
name[RW]
portion[RW]
rating[RW]
total_time[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/serious-eats/recipe.rb, line 21 def self.all @@all end
find(id)
click to toggle source
# File lib/serious-eats/recipe.rb, line 25 def self.find(id) self.all[id - 1] end
new()
click to toggle source
# File lib/serious-eats/recipe.rb, line 17 def initialize @@all << self end
Public Instance Methods
has_data?()
click to toggle source
# File lib/serious-eats/recipe.rb, line 29 def has_data? !!description end