Class: VBulletin::Forum

Inherits:
Base
  • Object
show all
Defined in:
lib/vbulletin/forum.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) ⇒ 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

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end