Class: Live_Update
- Inherits:
-
Object
- Object
- Live_Update
- Defined in:
- lib/Rubbit/Rubbit_Objects.rb
Overview
Rubbit Object
Object that represents an Update in a Live Thread
Instance Method Summary collapse
- #delete ⇒ Object
-
#initialize(json) ⇒ Live_Update
constructor
A new instance of Live_Update.
- #strike ⇒ Object
Constructor Details
#initialize(json) ⇒ Live_Update
Returns a new instance of Live_Update.
697 698 699 700 701 702 703 704 705 |
# File 'lib/Rubbit/Rubbit_Objects.rb', line 697 def initialize(json) if(json['kind']=='LiveUpdate') data = json['data'] data.each_key do |k| self.class.module_eval {attr_accessor(k)} self.send("#{k}=",data[k]) end end end |
Instance Method Details
#delete ⇒ Object
711 712 713 |
# File 'lib/Rubbit/Rubbit_Objects.rb', line 711 def delete end |
#strike ⇒ Object
707 708 709 |
# File 'lib/Rubbit/Rubbit_Objects.rb', line 707 def strike end |