class Post
Attributes
description[RW]
link[RW]
time[RW]
title[RW]
Public Class Methods
all()
click to toggle source
# File lib/post.rb, line 15 def self.all @@all end
new(attributes)
click to toggle source
# File lib/post.rb, line 10 def initialize(attributes) attributes.map {|k, v| self.send("#{k}=", v)} self.class.all << self end