Method: Disqus::Thread#initialize

Defined in:
lib/disqus/thread.rb

#initialize(id, forum, slug, title, created_at, allow_comments, url, identifier) ⇒ Thread

Returns a new instance of Thread.



6
7
8
9
# File 'lib/disqus/thread.rb', line 6

def initialize(id, forum, slug, title, created_at, allow_comments, url, identifier)
  @id, @forum, @slug, @title, @created_at, @allow_comments, @url, @identifier = id.to_i, forum, slug, title, Time.parse(created_at.to_s), allow_comments, url, identifier
  @posts = []
end