Included Modules

Class/Module Index [+]

Quicksearch

Twitter::Tweet

Attributes

favorited[R]
favorited?[R]
favoriters[R]
favourited[R]
favourited?[R]
from_user_id[R]
from_user_name[R]
in_reply_to_attrs_id[R]
in_reply_to_screen_name[R]
in_reply_to_status_id[R]
in_reply_to_tweet_id[R]
in_reply_to_user_id[R]
iso_language_code[R]
profile_image_url[R]
profile_image_url_https[R]
repliers[R]
retweeted[R]
retweeted?[R]
retweeters[R]
source[R]
text[R]
to_user[R]
to_user_id[R]
to_user_name[R]
truncated[R]
truncated?[R]

Public Instance Methods

favorite_count() click to toggle source
Alias for: favoriters_count
favoriters_count() click to toggle source

@return [Integer]

# File lib/twitter/tweet.rb, line 29
def favoriters_count
  favoriters_count = @attrs[:favoriters_count]
  favoriters_count.to_i if favoriters_count
end
favourite_count() click to toggle source
Alias for: favoriters_count
favouriters_count() click to toggle source
Alias for: favoriters_count
from_user() click to toggle source

@return [String]

# File lib/twitter/tweet.rb, line 38
def from_user
  @attrs[:from_user] || user && user.screen_name
end
full_text() click to toggle source

@return [String] @note May be > 140 characters.

# File lib/twitter/tweet.rb, line 44
def full_text
  retweeted_status && retweeted_status.user ? "RT @#{retweeted_status.user.screen_name}: #{retweeted_status.text}" : text
end
geo() click to toggle source

@return [Twitter::Geo]

# File lib/twitter/tweet.rb, line 49
def geo
  @geo ||= Twitter::GeoFactory.fetch_or_new(@attrs[:geo])
end
hashtags() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Entity::Hashtag>]

# File lib/twitter/tweet.rb, line 55
def hashtags
  @hashtags ||= entities(Twitter::Entity::Hashtag, :hashtags)
end
media() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Media>]

# File lib/twitter/tweet.rb, line 61
def media
  @media ||= entities(Twitter::MediaFactory, :media)
end
metadata() click to toggle source

@return [Twitter::Metadata]

# File lib/twitter/tweet.rb, line 66
def metadata
  @metadata ||= Twitter::Metadata.fetch_or_new(@attrs[:metadata])
end
oembed(options={}) click to toggle source

@deprecated This method will be removed in version 4. @return [Twitter::OEmbed]

# File lib/twitter/tweet.rb, line 72
def oembed(options={})
  @oembed ||= Twitter.oembed(@attrs[:id], options)
end
place() click to toggle source

@return [Twitter::Place]

# File lib/twitter/tweet.rb, line 77
def place
  @place ||= Twitter::Place.fetch_or_new(@attrs[:place])
end
repliers_count() click to toggle source

@return [Integer]

# File lib/twitter/tweet.rb, line 82
def repliers_count
  repliers_count = @attrs[:repliers_count]
  repliers_count.to_i if repliers_count
end
Also aliased as: reply_count
reply_count() click to toggle source
Alias for: repliers_count
retweet_count() click to toggle source
Alias for: retweeters_count
retweeted_status() click to toggle source

If this Tweet is a retweet, the original Tweet is available here.

@return [Twitter::Tweet]

# File lib/twitter/tweet.rb, line 91
def retweeted_status
  @retweeted_status ||= self.class.fetch_or_new(@attrs[:retweeted_status])
end
Also aliased as: retweeted_tweet
retweeted_tweet() click to toggle source
Alias for: retweeted_status
retweeters_count() click to toggle source

@return [String]

# File lib/twitter/tweet.rb, line 97
def retweeters_count
  retweeters_count = (@attrs[:retweet_count] || @attrs[:retweeters_count])
  retweeters_count.to_i if retweeters_count
end
Also aliased as: retweet_count
urls() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Entity::Url>]

# File lib/twitter/tweet.rb, line 105
def urls
  @urls ||= entities(Twitter::Entity::Url, :urls)
end
user() click to toggle source

@return [Twitter::User]

# File lib/twitter/tweet.rb, line 110
def user
  @user ||= Twitter::User.fetch_or_new(@attrs.dup[:user].merge(:status => @attrs.except(:user))) unless @attrs[:user].nil?
end
user_mentions() click to toggle source

@note Must include entities in your request for this method to work @return [Array<Twitter::Entity::UserMention>]

# File lib/twitter/tweet.rb, line 116
def user_mentions
  @user_mentions ||= entities(Twitter::Entity::UserMention, :user_mentions)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.