Sha256: d75c3288f36157d11970d906016e9c2db8bfcc2dad12ebd8734c2c850e2495aa
Contents?: true
Size: 441 Bytes
Versions: 7
Compression:
Stored size: 441 Bytes
Contents
require 'twitter/creatable' require 'twitter/identity' require 'twitter/user' module Twitter class DirectMessage < Twitter::Identity include Twitter::Creatable attr_reader :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
7 entries across 7 versions & 1 rubygems