Skip to content

Commit

Permalink
Add support for new favorite_count attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Mar 19, 2013
1 parent 7d9d6f9 commit de8a356
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lib/twitter/tweet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit de8a356

Please sign in to comment.