Class: Live_Update

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

Overview

Rubbit Object

Object that represents an Update in a Live Thread

Instance Method Summary collapse

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

#deleteObject



711
712
713
# File 'lib/Rubbit/Rubbit_Objects.rb', line 711

def delete

end

#strikeObject



707
708
709
# File 'lib/Rubbit/Rubbit_Objects.rb', line 707

def strike

end