Class: ChangeProcessor
- Inherits:
-
Object
- Object
- ChangeProcessor
- Defined in:
- lib/r_simperium/changes.rb
Instance Method Summary collapse
Instance Method Details
#process(change) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/r_simperium/changes.rb', line 3 def process(change) if change['o'] == 'M' && change.include?('sv') change['v'].each do |key| handler = :"on_change_#{key}" self.send handler, change['d'][key] if self.respond_to?(handler) end end end |