Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add filter_level and lang attribute readers

  • Loading branch information...
commit 283aafbe1219e55f19a76517d9edce497001fca2 1 parent e8b4997
Erik Michaels-Ober authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 lib/twitter/tweet.rb
9 lib/twitter/tweet.rb
View
@@ -10,9 +10,8 @@ class Tweet < Twitter::Identity
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, :iso_language_code, :repliers, :retweeted,
- :retweeters, :source, :text, :to_user, :to_user_id, :to_user_name,
- :truncated
+ :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 favourited favorited
alias favourited? favorited?
@@ -40,6 +39,10 @@ def from_user
@attrs[:from_user] || user && user.screen_name
end
+ def filter_level
+ @attrs[:filter_level] || "none"
+ end
+
# @return [String]
# @note May be > 140 characters.
def full_text
Please sign in to comment.
Something went wrong with that request. Please try again.