Class: Wuclan::Twitter::Model::SearchTweet
- Inherits:
-
Object
- Object
- Wuclan::Twitter::Model::SearchTweet
- Includes:
- ModelCommon
- Defined in:
- lib/wuclan/twitter/model/tweet.rb
Overview
SearchTweet
Text and metadata for a twitter status update pulled from the search API
Instance Method Summary collapse
-
#decoded_text ⇒ Object
Memoized; if you change text you have to flush.
- #from_sid ⇒ Object
- #from_user ⇒ Object
-
#num_key_fields ⇒ Object
Key on id.
- #numeric_id_fields ⇒ Object
- #to_sid ⇒ Object
Methods included from ModelCommon
#days_since_created, flatten_date, #key, #scrape_age, unbooleanize, zeropad_id
Instance Method Details
#decoded_text ⇒ Object
Memoized; if you change text you have to flush
61 62 63 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 61 def decoded_text @decoded_text ||= text.wukong_decode end |
#from_sid ⇒ Object
65 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 65 def from_sid() twitter_user_sid end |
#from_user ⇒ Object
66 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 66 def from_user() twitter_user_screen_name end |
#num_key_fields ⇒ Object
Key on id
71 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 71 def num_key_fields() 1 end |
#numeric_id_fields ⇒ Object
72 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 72 def numeric_id_fields() [:id, :twitter_user_id, :in_reply_to_status_id, :in_reply_to_user_id] ; end |
#to_sid ⇒ Object
67 |
# File 'lib/wuclan/twitter/model/tweet.rb', line 67 def to_sid() in_reply_to_sid end |