Class: Live_Thread
- Inherits:
-
Object
- Object
- Live_Thread
- Defined in:
- lib/Rubbit/Rubbit_Objects.rb
Overview
Rubbit Object
Object that represents a Live Thread
Instance Method Summary collapse
- #get_updates ⇒ Object
-
#initialize(id) ⇒ Live_Thread
constructor
A new instance of Live_Thread.
- #make_update(body) ⇒ Object
Constructor Details
#initialize(id) ⇒ Live_Thread
Returns a new instance of Live_Thread.
679 680 681 |
# File 'lib/Rubbit/Rubbit_Objects.rb', line 679 def initialize(id) @id = id end |
Instance Method Details
#get_updates ⇒ Object
683 684 685 |
# File 'lib/Rubbit/Rubbit_Objects.rb', line 683 def get_updates return ContentGenerator.new('http://www.reddit.com/live/'+@id+'.json',limit) end |
#make_update(body) ⇒ Object
687 688 689 |
# File 'lib/Rubbit/Rubbit_Objects.rb', line 687 def make_update(body) return Rubbit_Poster.instance.update_live(@id,body) end |