class TallyGem::Post

Attributes

author[RW]
id[RW]
number[RW]
text[RW]
votes[RW]

Public Class Methods

new(id, number, author, text) click to toggle source
# File lib/tallygem/posts/post.rb, line 6
def initialize(id, number, author, text)
  @id = id
  @number = number
  @author = author
  @text = text
  @votes = TallyGem::PostParser.instance.parse(text).to_a
end