Sha256: 632de4e2135d21c0c57c15a066f4c03adcec3c5b46f4525fd897a741e47ac3fd

Contents?: true

Size: 443 Bytes

Versions: 10

Compression:

Stored size: 443 Bytes

Contents

require 'twitter/creatable'
require 'twitter/identity'

module Twitter
  class DirectMessage < Twitter::Identity
    include Twitter::Creatable
    attr_reader :text
    alias full_text text

    # @return [Twitter::User]
    def recipient
      @recipient ||= Twitter::User.fetch_or_new(@attrs[:recipient])
    end

    # @return [Twitter::User]
    def sender
      @sender ||= Twitter::User.fetch_or_new(@attrs[:sender])
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
twitter-4.8.1 lib/twitter/direct_message.rb
twitter-4.8.0 lib/twitter/direct_message.rb
twitter-4.7.0 lib/twitter/direct_message.rb
twitter-4.6.2 lib/twitter/direct_message.rb
twitter-4.6.1 lib/twitter/direct_message.rb
twitter-4.6.0 lib/twitter/direct_message.rb
twitter-4.5.0 lib/twitter/direct_message.rb
twitter-4.4.4 lib/twitter/direct_message.rb
twitter-4.4.3 lib/twitter/direct_message.rb
twitter-4.4.2 lib/twitter/direct_message.rb