Sha256: 5fc9b148839045a8be7baedd916f2df9138b717637479c150edc7abfe441d62d
Contents?: true
Size: 530 Bytes
Versions: 3
Compression:
Stored size: 530 Bytes
Contents
module Twitter module Streaming class MessageParser def self.parse(data) if data[:id] Tweet.new(data) elsif data[:event] Event.new(data) elsif data[:direct_message] DirectMessage.new(data[:direct_message]) elsif data[:friends] FriendList.new(data[:friends]) elsif data[:delete] if data[:delete][:status] Tweet.new(data[:delete][:status].merge(:deleted => true)) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.1.1 | lib/twitter/streaming/message_parser.rb |
twitter-5.1.0 | lib/twitter/streaming/message_parser.rb |
twitter-5.0.1 | lib/twitter/streaming/message_parser.rb |