Sha256: 55aaa906ae1817b234583ff6372e146c9a31d617774f2cea1f99c6566b8d414b

Contents?: true

Size: 481 Bytes

Versions: 1

Compression:

Stored size: 481 Bytes

Contents

module SeriousEats
  class Recipe
    attr_accessor :name
    attr_accessor :url
    attr_accessor :category

    attr_accessor :description
    attr_accessor :portion
    attr_accessor :active_time
    attr_accessor :total_time
    attr_accessor :rating
    attr_accessor :ingredients
    attr_accessor :directions

    @@all = []

    def initialize
      @@all << self
    end

    def self.all
      @@all
    end

    def self.find(id)
      self.all[id - 1]
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serious-eats-0.1.0 lib/serious-eats/recipe.rb