class Epilicious::Recipe
Attributes
ingredients[R]
instructions[R]
name[R]
servings[R]
Public Class Methods
new(args)
click to toggle source
# File lib/epilicious/recipe.rb, line 8 def initialize(args) @name = args[:name] @servings = args[:servings] @ingredients = args[:ingredients] @instructions = args[:instructions] end
Public Instance Methods
to_json(*args)
click to toggle source
# File lib/epilicious/recipe.rb, line 15 def to_json(*args) { name: name, servings: servings, ingredients: ingredients, instructions: instructions }.to_json(*args) end