The user who mentioned a user
@return [Twitter::User]
# File lib/twitter/action/mention.rb, line 24 def source @source = sources.first end
A collection of users who mentioned a user
@return [Array<Twitter::User>]
# File lib/twitter/action/mention.rb, line 15 def sources @sources = Array(@attrs[:sources]).map do |user| Twitter::User.fetch_or_new(user) end end
A collection of tweets that mention a user
@return [Array<Twitter::Tweet>]
# File lib/twitter/action/mention.rb, line 31 def target_objects @target_objects = Array(@attrs[:target_objects]).map do |tweet| Twitter::Tweet.fetch_or_new(tweet) end end
A collection containing the mentioned user
@return [Array<Twitter::User>]
# File lib/twitter/action/mention.rb, line 40 def targets @targets = Array(@attrs[:targets]).map do |user| Twitter::User.fetch_or_new(user) end end
Generated with the Darkfish Rdoc Generator 2.