Class: VBulletin::Forum
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*params) ⇒ Forum
constructor
A new instance of Forum.
Methods inherited from Base
#construct_full_url, #construct_url, #forums, #get_index, #login, #search
Constructor Details
#initialize(*params) ⇒ Forum
Returns a new instance of Forum.
6 7 8 9 10 |
# File 'lib/vbulletin/forum.rb', line 6 def initialize(*params) params.each do |key| key.each { |k, v| instance_variable_set("@#{k}", v) } end end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/vbulletin/forum.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/vbulletin/forum.rb', line 4 def name @name end |