Class: DisqusRails::Category
- Defined in:
- lib/disqus_rails/category.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
Methods inherited from Model
inherited, #initialize, #update_attributes
Constructor Details
This class inherits a constructor from DisqusRails::Model
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/disqus_rails/category.rb', line 3 def id @id end |
Instance Method Details
#posts(attributes = {}) ⇒ Object
15 16 17 18 |
# File 'lib/disqus_rails/category.rb', line 15 def posts(attributes={}) attributes[:category] = self.id Posts.new :Categories, :listPosts, attributes end |
#threads(attributes = {}) ⇒ Object
10 11 12 13 |
# File 'lib/disqus_rails/category.rb', line 10 def threads(attributes={}) attributes[:category] = self.id Threads.new :Categories, :listThreads, attributes end |