Methods

Class/Module Index [+]

Quicksearch

Twitter::Tweet

Attributes

favorite_count[R]
filter_level[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]
lang[R]
retweet_count[R]
source[R]
text[R]

Public Instance Methods

full_text() click to toggle source

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

# File lib/twitter/tweet.rb, line 29
def full_text
  if retweet?
    prefix = text[/\A(RT @[a-z0-9_]{1,20}: )/, 1]
    [prefix, retweeted_status.text].compact.join
  else
    text
  end
end
uri() click to toggle source

@return [String] The URL to the tweet.

# File lib/twitter/tweet.rb, line 40
def uri
  Addressable::URI.parse("https://twitter.com/#{user.screen_name}/status/#{id}") unless user.nil?
end
Also aliased as: url
url() click to toggle source
Alias for: uri

[Validate]

Generated with the Darkfish Rdoc Generator 2.