Class: VBulletin::Thread

Inherits:
Base
  • Object
show all
Defined in:
lib/vbulletin/thread.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#debug, #mechanize, #uri

Instance Method Summary collapse

Methods inherited from Base

#construct_full_url, #construct_url, #forums, #get_index, #login, #search

Constructor Details

#initialize(*params) ⇒ Thread

Returns a new instance of Thread.



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

def initialize(*params)
  params.each do |key|
    key.each { |k, v| instance_variable_set("@#{k}", v) }
  end
end

Instance Attribute Details

#apiObject (readonly)

Returns the value of attribute api.



4
5
6
# File 'lib/vbulletin/thread.rb', line 4

def api
  @api
end

#created_atObject (readonly)

Returns the value of attribute created_at.



4
5
6
# File 'lib/vbulletin/thread.rb', line 4

def created_at
  @created_at
end

#forumObject (readonly)

Returns the value of attribute forum.



4
5
6
# File 'lib/vbulletin/thread.rb', line 4

def forum
  @forum
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/vbulletin/thread.rb', line 4

def id
  @id
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'lib/vbulletin/thread.rb', line 4

def title
  @title
end