Class: VBulletin::Thread
Instance Attribute Summary collapse
-
#api ⇒ Object
readonly
Returns the value of attribute api.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#forum ⇒ Object
readonly
Returns the value of attribute forum.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*params) ⇒ Thread
constructor
A new instance of Thread.
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
#api ⇒ Object (readonly)
Returns the value of attribute api.
4 5 6 |
# File 'lib/vbulletin/thread.rb', line 4 def api @api end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/vbulletin/thread.rb', line 4 def created_at @created_at end |
#forum ⇒ Object (readonly)
Returns the value of attribute forum.
4 5 6 |
# File 'lib/vbulletin/thread.rb', line 4 def forum @forum end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/vbulletin/thread.rb', line 4 def id @id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
4 5 6 |
# File 'lib/vbulletin/thread.rb', line 4 def title @title end |