class Reddit::Post
Attributes
comments[RW]
timestamp[RW]
title[RW]
upvotes[RW]
url[RW]
Public Class Methods
all()
click to toggle source
# File lib/reddit/post.rb, line 17 def self.all @@post end
new(title, author, timestamp, comments, upvotes, url)
click to toggle source
# File lib/reddit/post.rb, line 6 def initialize(title, author, timestamp, comments, upvotes, url) @title = title @author = author @timestamp = timestamp @comments = comments @upvotes = upvotes @url = url @@post << self end