Method: PasteHub::Status#update
- Defined in:
- lib/pastehub/clientsync.rb
#update ⇒ Object
75 76 77 78 79 80 81 82 83 |
# File 'lib/pastehub/clientsync.rb', line 75 def update( ) prev = @curJsonStr h = Hash.new h[ 'online' ] = @online h[ 'error' ] = @errorFlag h[ 'comes' ] = @comes @curJsonStr = JSON.dump( h ) return [ @curJsonStr, prev ] end |