class Partyhat::Forums::ForumPost
TODO: Deleted post type TODO: Make sure it cannot be instantiated with invalid information (date in the future etc) TODO: Check for moderator posts
Public Class Methods
new(author, posted, contents)
click to toggle source
# File lib/partyhat/forums/forum_post.rb, line 11 def initialize author, posted, contents @author = author @posted = posted @contents = contents end
Public Instance Methods
contents()
click to toggle source
# File lib/partyhat/forums/forum_post.rb, line 25 def contents @contents end
posted()
click to toggle source
# File lib/partyhat/forums/forum_post.rb, line 21 def posted @posted end