class Workout

Attributes

article[RW]
definition[RW]
title[RW]

Public Class Methods

all() click to toggle source
# File lib/swole-news/workout.rb, line 15
def self.all
  @@all
end
create_from_collection(workout_array) click to toggle source
# File lib/swole-news/workout.rb, line 11
def self.create_from_collection(workout_array)
  workout_array.map {|workout_hash| self.new(workout_hash)}
end
new(workout_hash) click to toggle source
# File lib/swole-news/workout.rb, line 6
def initialize(workout_hash)
  workout_hash.each {|k,v| self.send("#{k}=",v)}
  @@all << self
end