1
2
3
4
5
6
7
8
9
  class PrivateMessage
    attr_accessor :tweet_id, :sender_id, :raw_text, :sent_at
    
    def initialize(options = {})
      options.keys.each do |key| 
        send("#{key}=", options[key]) if respond_to?("#{key}=")
      end
    end
  end