Class: Live_Thread

Inherits:
Object
  • Object
show all
Defined in:
lib/Rubbit/Rubbit_Objects.rb

Overview

Rubbit Object

Object that represents a Live Thread

Instance Method Summary collapse

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_updatesObject



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