Skip to content

Commit

Permalink
Add filter_level and lang attribute readers
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Feb 14, 2013
1 parent e8b4997 commit 283aafb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/twitter/tweet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 283aafb

Please sign in to comment.