Permalink
Browse files

Add support for new favorite_count attribute

  • Loading branch information...
1 parent 7d9d6f9 commit de8a356d0d5e757bfe383b58744efa1c2d842b79 @sferik committed Mar 19, 2013
Showing with 9 additions and 9 deletions.
  1. +9 −9 lib/twitter/tweet.rb
View
@@ -8,11 +8,16 @@ class Tweet < Twitter::Identity
extend Forwardable
include Twitter::Creatable
include Twitter::Exceptable
- attr_reader :favorited, :favoriters, :from_user_id, :from_user_name,
- :in_reply_to_screen_name, :in_reply_to_attrs_id, :in_reply_to_status_id,
- :in_reply_to_user_id, :lang, :repliers, :retweeted, :retweeters, :source,
- :text, :to_user, :to_user_id, :to_user_name, :truncated
+ attr_reader :favorite_count, :favorited, :favoriters, :from_user_id,
+ :from_user_name, :in_reply_to_screen_name, :in_reply_to_attrs_id,
+ :in_reply_to_status_id, :in_reply_to_user_id, :lang, :repliers,
+ :retweeted, :retweeters, :source, :text, :to_user, :to_user_id,
+ :to_user_name, :truncated
alias in_reply_to_tweet_id in_reply_to_status_id
+ alias favorites_count favorite_count
+ alias favourite_count favorite_count
+ alias favourites_count favorite_count
+ alias favouriters_count favorite_count
alias favourited favorited
alias favourited? favorited?
alias favouriters favoriters
@@ -28,11 +33,6 @@ def favoriters_count
favoriters_count = @attrs[:favoriters_count]
favoriters_count.to_i if favoriters_count
end
- alias favorite_count favoriters_count
- alias favorites_count favoriters_count
- alias favourite_count favoriters_count
- alias favourites_count favoriters_count
- alias favouriters_count favoriters_count
# @return [String]
def from_user

0 comments on commit de8a356

Please sign in to comment.